diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-11 10:14:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-15 12:25:39 +0200 |
commit | d102b9ad592e9eb9b7cb167bc92fdb3eba6a844c (patch) | |
tree | 463e5e714d9720e38a4aa7b41a4b7a9c1b58cf2c /sw/inc/dbgoutsw.hxx | |
parent | 099940579840ba9abca9912ebc80cdfcbc5127b6 (diff) |
convert sw/inc/dbgoutsw.hxx from String to OUString
Change-Id: I147c597e9499535f466ee3f5d8ce343dd038084e
Diffstat (limited to 'sw/inc/dbgoutsw.hxx')
-rw-r--r-- | sw/inc/dbgoutsw.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/inc/dbgoutsw.hxx b/sw/inc/dbgoutsw.hxx index a02912d442be..0fb9bdf35697 100644 --- a/sw/inc/dbgoutsw.hxx +++ b/sw/inc/dbgoutsw.hxx @@ -50,7 +50,6 @@ extern bool bDbgOutStdErr; extern bool bDbgOutPrintAttrSet; SW_DLLPUBLIC const char * dbg_out(const void * pVoid); -SW_DLLPUBLIC const char * dbg_out(const String & aStr); SW_DLLPUBLIC const char * dbg_out(const OUString & aStr); SW_DLLPUBLIC const char * dbg_out(const SwRect & rRect); SW_DLLPUBLIC const char * dbg_out(const SwFrmFmt & rFrmFmt); @@ -73,25 +72,25 @@ SW_DLLPUBLIC const char * dbg_out(const SwNumRuleTbl & rTbl); SW_DLLPUBLIC const char * dbg_out(const SwNodeRange & rRange); template<typename tKey, typename tMember, typename fHashFunction> -String lcl_dbg_out(const boost::unordered_map<tKey, tMember, fHashFunction> & rMap) +OUString lcl_dbg_out(const boost::unordered_map<tKey, tMember, fHashFunction> & rMap) { - String aResult("[", RTL_TEXTENCODING_ASCII_US); + OUString aResult("[", RTL_TEXTENCODING_ASCII_US); typename boost::unordered_map<tKey, tMember, fHashFunction>::const_iterator aIt; for (aIt = rMap.begin(); aIt != rMap.end(); aIt++) { if (aIt != rMap.begin()) - aResult += String(", ", RTL_TEXTENCODING_ASCII_US); + aResult += ", "; aResult += aIt->first; char sBuffer[256]; sprintf(sBuffer, "(%p)", aIt->second); - aResult += String(sBuffer, RTL_TEXTENCODING_ASCII_US); + aResult += OUString(sBuffer, strlen(sBuffer), RTL_TEXTENCODING_ASCII_US); } - aResult += String("]", RTL_TEXTENCODING_ASCII_US); + aResult += "]"; return aResult; } |