projects
/
yandex-traffic
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make settings a singleton.
[yandex-traffic]
/
settings.hpp
diff --git
a/settings.hpp
b/settings.hpp
index
1953f76
..
19b00f4
100644
(file)
--- a/
settings.hpp
+++ b/
settings.hpp
@@
-58,8
+58,9
@@
private:
int intervalIndex2Minutes (int index) const;
int minutes2IntervalIndex (int minutes) const;
-public:
Settings ();
+public:
+ static Settings* instance ();
void load ();
void save ();