From 73c923aed131ccdedc4b6a1a1bd1862960a8aa45 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 10 Jan 2010 21:49:36 +0100 Subject: little refactor of the header moved get_version and set_version from private to protected moved friend declaration for test to end of class definition --- src/base/database.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/base/database.hpp b/src/base/database.hpp index c7bb00b8..08087c7f 100644 --- a/src/base/database.hpp +++ b/src/base/database.hpp @@ -94,14 +94,10 @@ namespace usdx static StatDatabase* instance; + protected: int get_version(void); void set_version(int version); -#ifdef STAT_DATABASE_TEST - // for testing private members - friend class StatDatabaseTest; -#endif - public: static StatDatabase* get_instance(); @@ -145,6 +141,11 @@ namespace usdx * - the date string with the terminating '\\0' */ char* format_date(char* time, size_t max, time_t timestamp); + +#ifdef STAT_DATABASE_TEST + // for testing private members + friend class StatDatabaseTest; +#endif }; /* Element for linked list with pointer to next */ -- cgit v1.2.3