diff options
author | LDA <lda@ldasuku.net> | 2023-06-26 11:48:27 -0700 |
---|---|---|
committer | LDA <lda@ldasuku.net> | 2023-06-26 11:58:35 -0700 |
commit | c9e889723b7af832322d178975e6e440d6cd3ae5 (patch) | |
tree | a8429c30ecf46ed1388df13b614141e73973cd9f /source/core/StarDirectives.cpp | |
parent | 4585c9cafa87cad6b54397af7e9375cc31b72f89 (diff) |
resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
Diffstat (limited to 'source/core/StarDirectives.cpp')
-rw-r--r-- | source/core/StarDirectives.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/core/StarDirectives.cpp b/source/core/StarDirectives.cpp index a18951e..dc1765c 100644 --- a/source/core/StarDirectives.cpp +++ b/source/core/StarDirectives.cpp @@ -154,11 +154,11 @@ size_t Directives::size() const { return shared ? shared->entries.size() : 0; } -inline bool Directives::empty() const { +bool Directives::empty() const { return !shared || shared->empty(); } -inline Directives::operator bool() const { +Directives::operator bool() const { return !empty(); } @@ -172,7 +172,7 @@ DataStream& operator>>(DataStream& ds, Directives& directives) { return ds; } -DataStream& operator<<(DataStream& ds, Directives const& directives) { +DataStream& operator<<(DataStream & ds, Directives const& directives) { if (directives) ds.write(directives.shared->string); else @@ -205,11 +205,11 @@ DirectivesGroup::DirectivesGroup(String&& directives) : m_count(0) { } } -inline bool DirectivesGroup::empty() const { +bool DirectivesGroup::empty() const { return m_count == 0; } -inline DirectivesGroup::operator bool() const { +DirectivesGroup::operator bool() const { return empty(); } @@ -238,7 +238,7 @@ DirectivesGroup& DirectivesGroup::operator+=(Directives const& other) { return *this; } -inline String DirectivesGroup::toString() const { +String DirectivesGroup::toString() const { String string; addToString(string); return string; @@ -272,7 +272,7 @@ bool DirectivesGroup::forEachAbortable(AbortableDirectivesCallback callback) con return true; } -inline Image DirectivesGroup::applyNewImage(Image const& image) const { +Image DirectivesGroup::applyNewImage(Image const& image) const { Image result = image; applyExistingImage(result); return result; @@ -288,7 +288,7 @@ void DirectivesGroup::applyExistingImage(Image& image) const { }); } -inline size_t DirectivesGroup::hash() const { +size_t DirectivesGroup::hash() const { XXHash3 hasher; for (auto& directives : m_directives) { size_t hash = directives.hash(); |