summaryrefslogtreecommitdiff
path: root/include/fud_directory.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2025-01-04 09:56:12 -0600
committerDominick Allen <djallen@librehumanitas.org>2025-01-04 09:56:12 -0600
commit0b400af9519444deef4cc6ad2c43c30e2092ab4f (patch)
treee6b0d78a2c292a7df5724f150e123b55d7871819 /include/fud_directory.hpp
parent253385f4bca5ccd2fee22fea8333dfe435c0df0a (diff)
Fix bug related to string copying.
Diffstat (limited to 'include/fud_directory.hpp')
-rw-r--r--include/fud_directory.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fud_directory.hpp b/include/fud_directory.hpp
index e935950..d7f6b1f 100644
--- a/include/fud_directory.hpp
+++ b/include/fud_directory.hpp
@@ -99,11 +99,11 @@ class Directory {
Directory& operator=(const Directory& rhs) = delete;
Directory& operator=(Directory&& rhs) noexcept = delete;
- constexpr const String& name() const {
+ [[nodiscard]] constexpr const String& name() const {
return m_name;
}
- constexpr int errorCode() const
+ [[nodiscard]] constexpr int errorCode() const
{
return m_errorCode;
}