clang-tidy: mark a bunch of variables constexpr
Found with cppcoreguidelines-interfaces-global-init Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
const StoragePlugin *const storage_plugins[] = {
|
||||
constexpr const StoragePlugin *storage_plugins[] = {
|
||||
&local_storage_plugin,
|
||||
#ifdef ENABLE_SMBCLIENT
|
||||
&smbclient_storage_plugin,
|
||||
|
@@ -170,7 +170,7 @@ CreateLocalStorage(Path base_fs)
|
||||
return std::make_unique<LocalStorage>(base_fs);
|
||||
}
|
||||
|
||||
const StoragePlugin local_storage_plugin = {
|
||||
constexpr StoragePlugin local_storage_plugin = {
|
||||
"local",
|
||||
nullptr,
|
||||
};
|
||||
|
Reference in New Issue
Block a user