diff options
author | Chris Johns <chrisj@rtems.org> | 2020-10-09 10:44:36 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2020-10-09 10:46:25 +1100 |
commit | 89a22be079971c9596462a5d3343b1bc718322be (patch) | |
tree | 1b0fc72e6df5605faeabfef2cc6b07a31132278d /cpukit/librtemscxx/error.cpp | |
parent | librtemscxx: Add join() and detach() to the thread (diff) | |
download | rtems-89a22be079971c9596462a5d3343b1bc718322be.tar.bz2 |
librtemscxx: Fix white space to match the coding standard
Diffstat (limited to 'cpukit/librtemscxx/error.cpp')
-rw-r--r-- | cpukit/librtemscxx/error.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/cpukit/librtemscxx/error.cpp b/cpukit/librtemscxx/error.cpp index 8723856ac9..77d4910b52 100644 --- a/cpukit/librtemscxx/error.cpp +++ b/cpukit/librtemscxx/error.cpp @@ -29,23 +29,23 @@ 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) + : 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) + : std::runtime_error(what + ": " + ::rtems_status_text(sc)), + sc(sc) { } - runtime_error::runtime_error (const rtems_status_code sc, - const char* what) - : std::runtime_error (std::string (what) + ": " + ::rtems_status_text (sc)), - sc (sc) + runtime_error::runtime_error(const rtems_status_code sc, + const char* what) + : std::runtime_error(std::string(what) + ": " + ::rtems_status_text(sc)), + sc(sc) { } @@ -54,26 +54,26 @@ namespace rtems } void - runtime_error_check (const rtems_status_code sc) + runtime_error_check(const rtems_status_code sc) { if (sc != RTEMS_SUCCESSFUL) { - throw runtime_error (sc); + throw runtime_error(sc); } } void - runtime_error_check (const rtems_status_code sc, const std::string& what) + runtime_error_check(const rtems_status_code sc, const std::string& what) { if (sc != RTEMS_SUCCESSFUL) { - throw runtime_error (sc, what); + throw runtime_error(sc, what); } } void - runtime_error_check (const rtems_status_code sc, const char* what) + runtime_error_check(const rtems_status_code sc, const char* what) { if (sc != RTEMS_SUCCESSFUL) { - throw runtime_error (sc, what); + throw runtime_error(sc, what); } } }; |