RTEMS | cpukit/librtemscxx: reformat (!995)
Chris Johns (@chris)
gitlab at rtems.org
Thu Feb 5 20:48:39 UTC 2026
Chris Johns commented on a discussion on cpukit/librtemscxx/error.cpp: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/995#note_141868
> - : std::runtime_error(::rtems_status_text(sc)),
> - sc(sc)
> - {
> - }
> +namespace rtems {
> +runtime_error::runtime_error(const rtems_status_code sc)
> + : std::runtime_error(::rtems_status_text(sc)), sc(sc) {}
>
> - runtime_error::runtime_error(const rtems_status_code sc,
> - const std::string& what)
> - : std::runtime_error(what + ": " + ::rtems_status_text(sc)),
> - sc(sc)
> - {
> - }
> +runtime_error::runtime_error(const rtems_status_code sc,
> + const std::string &what)
Looks good, thanks.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/995#note_141868
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260205/9bc589ea/attachment-0001.htm>
More information about the bugs
mailing list