mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Make use of a default value
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
a672fd0647
commit
6f439097d6
3 changed files with 15 additions and 17 deletions
|
@ -41,7 +41,7 @@ public:
|
|||
std::string file () const;
|
||||
|
||||
bool has (const std::string&) const;
|
||||
std::string get (const std::string&) const;
|
||||
std::string get (const std::string &key, const std::string &defaultValue = "") const;
|
||||
int getInteger (const std::string&, int defaultValue = 0) const;
|
||||
double getReal (const std::string&) const;
|
||||
bool getBoolean (const std::string&) const;
|
||||
|
@ -78,6 +78,7 @@ private:
|
|||
std::string _original_file {};
|
||||
std::map <std::string, std::string> _settings {};
|
||||
std::vector <std::string> _rule_types {"tags", "reports", "theme", "holidays", "exclusions"};
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue