diff options
author | Don Sanders <don.sanders@nokia.com> | 2010-10-11 16:58:22 +1000 |
---|---|---|
committer | Don Sanders <don.sanders@nokia.com> | 2010-10-11 16:58:22 +1000 |
commit | 6e3f549cd5168f73a17804ec5b81938135eaf9d4 (patch) | |
tree | d5e939de0bac1706e985f13b71cf329f6a9fe885 | |
parent | 4350a51abe969550d2a2c3e66ff179eabbf6f752 (diff) |
inline templated functions to prevent possible future linker errors.2010W40_2
-rw-r--r-- | src/libraries/qmfclient/support/qloggers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libraries/qmfclient/support/qloggers.h b/src/libraries/qmfclient/support/qloggers.h index 442a78c6..fc2a556e 100644 --- a/src/libraries/qmfclient/support/qloggers.h +++ b/src/libraries/qmfclient/support/qloggers.h @@ -83,7 +83,7 @@ public: \return true if logger is ready for logging, otherwise returns false. */ - inline bool isReady() const { return is_ready; }; + bool isReady() const { return is_ready; }; /// Empty destructor virtual ~BaseLoggerFoundation() { }; @@ -290,7 +290,7 @@ inline void BaseLogger<Host, Prefix>::log(const LogLevel _lvl, const char* _fmt, /**********************************************************************************************************/ template <class Prefix> -FileLogger<Prefix>::FileLogger(const QString& _name, const unsigned _flush_period, const LogLevel _min_lvl) +inline FileLogger<Prefix>::FileLogger(const QString& _name, const unsigned _flush_period, const LogLevel _min_lvl) : BaseLogger< FileLogger<Prefix>, Prefix >(*this, _min_lvl), name(_name), should_close(true), do_cntr(0), flush_period(_flush_period) { f = fopen(qPrintable(_name), "a" ); @@ -302,13 +302,13 @@ FileLogger<Prefix>::FileLogger(const QString& _name, const unsigned _flush_perio }; template <class Prefix> -FileLogger<Prefix>::FileLogger(FILE* _f, const unsigned _flush_period, const LogLevel _min_lvl, bool _owner) +inline FileLogger<Prefix>::FileLogger(FILE* _f, const unsigned _flush_period, const LogLevel _min_lvl, bool _owner) : BaseLogger< FileLogger<Prefix>, Prefix >(*this, _min_lvl), name(""), f(_f), should_close(_owner), flush_period(_flush_period) { }; template <class Prefix> -FileLogger<Prefix>::~FileLogger() +inline FileLogger<Prefix>::~FileLogger() { if(should_close) fclose(f); |