diff options
Diffstat (limited to 'writerfilter/source/resourcemodel/TagLogger.cxx')
-rw-r--r-- | writerfilter/source/resourcemodel/TagLogger.cxx | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/writerfilter/source/resourcemodel/TagLogger.cxx b/writerfilter/source/resourcemodel/TagLogger.cxx index 15786951c131..9159898f2201 100644 --- a/writerfilter/source/resourcemodel/TagLogger.cxx +++ b/writerfilter/source/resourcemodel/TagLogger.cxx @@ -26,36 +26,36 @@ * ************************************************************************/ -#if OSL_DEBUG_LEVEL > 1 #include <libxml/xmlstring.h> #include <string.h> #include <resourcemodel/TagLogger.hxx> #include <resourcemodel/util.hxx> #include <resourcemodel/QNameToString.hxx> +#include <boost/unordered_map.hpp> namespace writerfilter { - struct eqstr +struct eqstr +{ + bool operator()(const char* s1, const char* s2) const { - bool operator()(const char* s1, const char* s2) const - { - return strcmp(s1, s2) == 0; - } - }; + return strcmp(s1, s2) == 0; + } +}; - typedef boost::unordered_map<const char *, TagLogger::Pointer_t, hash<const char *>, eqstr> TagLoggerHashMap_t; - static TagLoggerHashMap_t * tagLoggers = NULL; +typedef boost::unordered_map<const char *, TagLogger::Pointer_t> TagLoggerHashMap_t; +static TagLoggerHashMap_t * tagLoggers = NULL; TagLogger::TagLogger(const char* name) : pWriter( NULL ), pName( name ) - { - } +{ +} - TagLogger::~TagLogger() - { +TagLogger::~TagLogger() +{ pWriter = NULL; pName = NULL; - } +} void TagLogger::setFileName( const string & filename ) { @@ -205,7 +205,7 @@ namespace writerfilter class PropertySetDumpHandler : public Properties - { +{ IdToString::Pointer_t mpIdToString; TagLogger::Pointer_t m_pLogger; @@ -316,6 +316,5 @@ namespace writerfilter } } -#endif // DEBUG /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |