Skip to content

Commit c5cccb3

Browse files
Refactor settings constants to use inline constexpr for better type safety
1 parent a80209f commit c5cccb3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/zUtils/include/settings.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef SETTINGS_HPP
22
#define SETTINGS_HPP
3-
#include <QStringLiteral>
4-
#define AUTO_HIDE_SETTING "settings/auto_hide"
5-
#define AUTO_NOTIFICATION_SETTING "settings/auto_notification"
3+
4+
inline constexpr const char* AUTO_HIDE_SETTING = "settings/auto_hide";
5+
inline constexpr const char* AUTO_NOTIFICATION_SETTING = "settings/auto_notification";
6+
inline constexpr const char* LANGUAGE_SETTING = "settings/languages";
67

78
#endif // SETTINGS_HPP

0 commit comments

Comments
 (0)