aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.error
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.error')
-rw-r--r--nihil.error/error.cc2
-rw-r--r--nihil.error/error.ccm2
2 files changed, 2 insertions, 2 deletions
diff --git a/nihil.error/error.cc b/nihil.error/error.cc
index 15805a3..e4023f9 100644
--- a/nihil.error/error.cc
+++ b/nihil.error/error.cc
@@ -85,7 +85,7 @@ auto error::root_cause(this error const &self) -> error const &
if (self.m_cause)
return self.m_cause->root_cause();
- return self;
+ return self; //NOLINT(bugprone-return-const-ref-from-parameter)
}
auto error::str(this error const &self) -> std::string
diff --git a/nihil.error/error.ccm b/nihil.error/error.ccm
index b624184..12d47cc 100644
--- a/nihil.error/error.ccm
+++ b/nihil.error/error.ccm
@@ -53,7 +53,7 @@ export struct error : std::exception {
error();
// Destroy an error.
- virtual ~error();
+ ~error() override;
// Create an error from a freeform string.
error(std::string_view what, error cause);