From c3586b684c58e06cd80dea87d7681354acfec80b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Dec 2016 16:31:57 +0200 Subject: OSL_TRACE->SAL in chart2..oox Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2 Reviewed-on: https://gerrit.libreoffice.org/31907 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- connectivity/workben/iniParser/main.cxx | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'connectivity/workben/iniParser') diff --git a/connectivity/workben/iniParser/main.cxx b/connectivity/workben/iniParser/main.cxx index e9c338987c45..dacc8bae337e 100644 --- a/connectivity/workben/iniParser/main.cxx +++ b/connectivity/workben/iniParser/main.cxx @@ -73,10 +73,6 @@ public: throw css::io::IOException(); -#if OSL_DEBUG_LEVEL > 1 - OString sFile = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US); - OSL_TRACE(__FILE__" -- parser() - %s\n", sFile.getStr()); -#endif oslFileHandle handle=NULL; if (iniUrl.getLength() && osl_File_E_None == osl_openFile(iniUrl.pData, &handle, osl_File_OpenFlag_Read)) @@ -128,8 +124,7 @@ public: #if OSL_DEBUG_LEVEL > 1 else { - OString file_tmp = OUStringToOString(iniUrl, RTL_TEXTENCODING_ASCII_US); - OSL_TRACE( __FILE__" -- couldn't open file: %s", file_tmp.getStr() ); + SAL_WARN("connectivity", "couldn't open file: " << iniUrl ); throw css::io::IOException(); } #endif @@ -142,19 +137,13 @@ public: for(;iBegin != iEnd;iBegin++) { ini_Section *aSection = &(*iBegin).second; - OString sec_name_tmp = OUStringToOString(aSection->sName, RTL_TEXTENCODING_ASCII_US); for(NameValueList::iterator itor=aSection->lList.begin(); itor != aSection->lList.end(); itor++) { struct ini_NameValue * aValue = &(*itor); - OString name_tmp = OUStringToOString(aValue->sName, RTL_TEXTENCODING_ASCII_US); - OString value_tmp = OUStringToOString(aValue->sValue, RTL_TEXTENCODING_UTF8); - OSL_TRACE( - " section=%s name=%s value=%s\n", - sec_name_tmp.getStr(), - name_tmp.getStr(), - value_tmp.getStr() ); + SAL_WARN("connectivity", + " section=" << aSection->sName << " name=" << aValue->sName << " value=" << aValue->sValue ); } } -- cgit