Code Cleanup (#2191)

* constexpr const -> constexpr
* const char* -> std::string_view
This commit is contained in:
Alexander Bock
2022-07-25 15:57:45 +02:00
committed by GitHub
parent ea1f4bbf40
commit 9cc4c595a8
267 changed files with 1425 additions and 1565 deletions
+3 -3
View File
@@ -36,9 +36,9 @@
#include <string_view>
namespace {
constexpr const int8_t DataCacheFileVersion = 10;
constexpr const int8_t LabelCacheFileVersion = 10;
constexpr const int8_t ColorCacheFileVersion = 10;
constexpr int8_t DataCacheFileVersion = 10;
constexpr int8_t LabelCacheFileVersion = 10;
constexpr int8_t ColorCacheFileVersion = 10;
bool startsWith(std::string lhs, std::string_view rhs) noexcept {
for (size_t i = 0; i < lhs.size(); i++) {