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

View File

@@ -46,7 +46,7 @@
#include <thread>
namespace {
constexpr const char* _loggerCat = "RenderableFieldlinesSequence";
constexpr std::string_view _loggerCat = "RenderableFieldlinesSequence";
constexpr openspace::properties::Property::PropertyInfo ColorMethodInfo = {
"ColorMethod",
@@ -764,9 +764,9 @@ void RenderableFieldlinesSequence::setModelDependentConstants() {
// Requires files to be named as such: 'YYYY-MM-DDTHH-MM-SS-XXX.osfls'
void RenderableFieldlinesSequence::extractTriggerTimesFromFileNames() {
// number of characters in filename (excluding '.osfls')
constexpr const int FilenameSize = 23;
constexpr int FilenameSize = 23;
// size(".osfls")
constexpr const int ExtSize = 6;
constexpr int ExtSize = 6;
for (const std::string& filePath : _sourceFiles) {
const size_t strLength = filePath.size();