@@ -52,12 +52,12 @@ class ConfigFile : public Firebird::AutoStorage, public Firebird::RefCounted
5252{
5353public:
5454 // flags for config file
55- static const USHORT HAS_SUB_CONF = 0x01 ;
56- static const USHORT ERROR_WHEN_MISS = 0x02 ;
57- static const USHORT NATIVE_ORDER = 0x04 ;
58- static const USHORT NO_COMMENTS = 0x08 ;
59- static const USHORT CUSTOM_MACROS = 0x10 ;
60- static const USHORT REGEXP_SUPPORT = 0x20 ;
55+ static inline constexpr USHORT HAS_SUB_CONF = 0x01 ;
56+ static inline constexpr USHORT ERROR_WHEN_MISS = 0x02 ;
57+ static inline constexpr USHORT NATIVE_ORDER = 0x04 ;
58+ static inline constexpr USHORT NO_COMMENTS = 0x08 ;
59+ static inline constexpr USHORT CUSTOM_MACROS = 0x10 ;
60+ static inline constexpr USHORT REGEXP_SUPPORT = 0x20 ;
6161
6262 // enum to distinguish ctors
6363 enum UseText {USE_TEXT};
@@ -134,7 +134,7 @@ class ConfigFile : public Firebird::AutoStorage, public Firebird::RefCounted
134134 USHORT flags;
135135 unsigned includeLimit;
136136 ConfigCache* filesCache;
137- static const unsigned INCLUDE_LIMIT = 64 ;
137+ static inline constexpr unsigned INCLUDE_LIMIT = 64 ;
138138
139139 // utilities
140140 bool getLine (Stream* stream, String&, unsigned int &);
@@ -146,7 +146,7 @@ class ConfigFile : public Firebird::AutoStorage, public Firebird::RefCounted
146146 bool wildCards (const char * currentFileName, const Firebird::PathName& pathPrefix, FilesArray& components);
147147 bool substituteStandardDir (const String& from, String& to) const ;
148148 void adjustMacroReplacePositions (const String& value, const String& macro, String::size_type& from, String::size_type& to) const ;
149- unsigned getDirSeparatorLength (const String& value, size_t subFrom) const ;
149+ unsigned getDirSeparatorLength (const String& value, String::size_type subFrom) const ;
150150};
151151
152152#endif // CONFIG_CONFIG_FILE_H
0 commit comments