diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-20 11:08:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-21 09:15:11 +0200 |
commit | 8c8f2a528534c31708028825d327601d7bec804c (patch) | |
tree | c7905b70ed9dac0f53f72eef4efc33e1e7cf1c0d /sc | |
parent | 841e1a6f3619054ecc9240e061cd83d4e41d1ca9 (diff) |
remove unnecessary explicit linefeeds from end of SAL and OSL log calls
Change-Id: I3fa363c8e76e6cfb297f4ec346e3f031c09d6fbf
Reviewed-on: https://gerrit.libreoffice.org/36727
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpshttab.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/parclass.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/tokstack.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/oox/sheetdatacontext.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/oox/workbookfragment.cxx | 8 | ||||
-rw-r--r-- | sc/source/filter/qpro/qpro.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/app/client.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh8.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/fuins2.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/sharedocdlg.cxx | 2 |
13 files changed, 21 insertions, 21 deletions
diff --git a/sc/source/core/data/dpshttab.cxx b/sc/source/core/data/dpshttab.cxx index c65eb9841a67..a42443da47a1 100644 --- a/sc/source/core/data/dpshttab.cxx +++ b/sc/source/core/data/dpshttab.cxx @@ -286,7 +286,7 @@ const ScDPCache* ScSheetSourceDesc::CreateCache(const ScDPDimensionSaveData* pDi sal_uLong nErrId = CheckSourceRange(); if (nErrId) { - OSL_FAIL( "Error Create Cache\n" ); + OSL_FAIL( "Error Create Cache" ); return nullptr; } diff --git a/sc/source/core/tool/parclass.cxx b/sc/source/core/tool/parclass.cxx index 2be37c1bfe6a..26b4c92d2796 100644 --- a/sc/source/core/tool/parclass.cxx +++ b/sc/source/core/tool/parclass.cxx @@ -610,7 +610,7 @@ void ScParameterClassification::GenerateDocumentation() break; default:; } - SAL_INFO( "sc.core", "" << aStr << "\n"); + SAL_INFO( "sc.core", "" << aStr); } } fflush( stdout); diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx index 70c4c683c44f..dc810ee82104 100644 --- a/sc/source/filter/excel/tokstack.cxx +++ b/sc/source/filter/excel/tokstack.cxx @@ -924,7 +924,7 @@ ScMatrix* TokenPool::GetMatrix( unsigned int n ) const if( n < nP_MatrixAkt ) return ppP_Matrix[ n ]; else - SAL_WARN("sc.filter", "GetMatrix: " << n << " >= " << nP_MatrixAkt << "\n"); + SAL_WARN("sc.filter", "GetMatrix: " << n << " >= " << nP_MatrixAkt); return nullptr; } diff --git a/sc/source/filter/oox/sheetdatacontext.cxx b/sc/source/filter/oox/sheetdatacontext.cxx index 189cd233266a..84fcabfcd6ce 100644 --- a/sc/source/filter/oox/sheetdatacontext.cxx +++ b/sc/source/filter/oox/sheetdatacontext.cxx @@ -74,12 +74,12 @@ SheetDataContext::SheetDataContext( WorksheetFragmentBase& rFragment ) : mnRow( -1 ), mnCol( -1 ) { - SAL_INFO( "sc.filter", "start safe sheet data context - unlock\n" ); + SAL_INFO( "sc.filter", "start safe sheet data context - unlock" ); } SheetDataContext::~SheetDataContext() { - SAL_INFO( "sc.filter", "end safe sheet data context - relock\n" ); + SAL_INFO( "sc.filter", "end safe sheet data context - relock" ); } ContextHandlerRef SheetDataContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index 04162147c20c..bab9691aa933 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -238,16 +238,16 @@ public: // We hold the solar mutex in all threads except for // the small safe section of the inner loop in // sheetdatacontext.cxx - SAL_INFO( "sc.filter", "start wait on solar\n" ); + SAL_INFO( "sc.filter", "start wait on solar" ); SolarMutexGuard aGuard; - SAL_INFO( "sc.filter", "got solar\n" ); + SAL_INFO( "sc.filter", "got solar" ); std::unique_ptr<oox::core::FastParser> xParser( oox::core::XmlFilterBase::createParser() ); - SAL_INFO( "sc.filter", "start import\n" ); + SAL_INFO( "sc.filter", "start import" ); mrWorkbookHandler.importOoxFragment( mxHandler, *xParser ); - SAL_INFO( "sc.filter", "end import, release solar\n" ); + SAL_INFO( "sc.filter", "end import, release solar" ); mrSheetsLeft--; assert( mrSheetsLeft >= 0 ); if( mrSheetsLeft == 0 ) diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx index 97b2081cdde1..b0810e7c69e1 100644 --- a/sc/source/filter/qpro/qpro.cxx +++ b/sc/source/filter/qpro/qpro.cxx @@ -42,7 +42,7 @@ FltError ScQProReader::readSheet( SCTAB nTab, ScDocument* pDoc, ScQProStyle *pSt sal_uInt16 nStyle; bool bEndOfSheet = false; - SAL_INFO("sc", "Read sheet " << nTab << "\n"); + SAL_INFO("sc", "Read sheet " << nTab); while( eERR_OK == eRet && !bEndOfSheet && nextRecord() ) { diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 668531eccb51..8eaa8b9a8b9b 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -346,7 +346,7 @@ bool ScXMLImportWrapper::Import( ImportFlags nMode, ErrCode& rError ) } // Set base URI - OSL_ENSURE( pMedium, "There is no medium to get MediaDescriptor from!\n" ); + OSL_ENSURE( pMedium, "There is no medium to get MediaDescriptor from!" ); OUString aBaseURL = pMedium ? pMedium->GetBaseURL() : OUString(); // needed for relative URLs, but in clipboard copy/paste there may be none SAL_INFO_IF(aBaseURL.isEmpty(), "sc.filter", "ScXMLImportWrapper: no base URL"); @@ -785,7 +785,7 @@ bool ScXMLImportWrapper::Export(bool bStylesOnly) const OUString sTargetStorage("TargetStorage"); xInfoSet->setPropertyValue( sTargetStorage, uno::Any( xStorage ) ); - OSL_ENSURE( pMedium, "There is no medium to get MediaDescriptor from!\n" ); + OSL_ENSURE( pMedium, "There is no medium to get MediaDescriptor from!" ); OUString aBaseURL = pMedium ? pMedium->GetBaseURL( true ) : OUString(); OUString sPropName("BaseURI"); xInfoSet->setPropertyValue( sPropName, uno::makeAny( aBaseURL ) ); diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx index 9713669bf8b6..4f9cf7abe31b 100644 --- a/sc/source/ui/app/client.cxx +++ b/sc/source/ui/app/client.cxx @@ -202,7 +202,7 @@ void ScClient::ViewChanged() aSz = xObj->getVisualAreaSize( GetAspect() ); } catch ( embed::NoVisualAreaSizeException& ) { - OSL_FAIL("The visual area size must be available!\n"); + OSL_FAIL("The visual area size must be available!"); } MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( GetAspect() ) ); diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 16d128a2882b..e9369c93def8 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -918,7 +918,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint ) } catch ( uno::Exception& ) { - OSL_FAIL( "SfxEventHintId::SaveDoc: caught exception\n" ); + OSL_FAIL( "SfxEventHintId::SaveDoc: caught exception" ); SC_MOD()->SetInSharedDocSaving( false ); try diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 135034c784e7..33d175ea5553 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1081,7 +1081,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) } catch ( uno::Exception& ) { - OSL_FAIL( "SID_SHARE_DOC: caught exception\n" ); + OSL_FAIL( "SID_SHARE_DOC: caught exception" ); SC_MOD()->SetInSharedDocSaving( false ); try @@ -2465,7 +2465,7 @@ uno::Reference< frame::XModel > ScDocShell::LoadSharedDocument() } catch ( uno::Exception& ) { - OSL_FAIL( "ScDocShell::LoadSharedDocument(): caught exception\n" ); + OSL_FAIL( "ScDocShell::LoadSharedDocument(): caught exception" ); SC_MOD()->SetInSharedDocLoading( false ); try { diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 71e8a86b8865..d43e851763e8 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -1071,7 +1071,7 @@ sal_uLong ScDocShell::DBaseExport( const OUString& rFullFileName, rtl_TextEncodi } nLen = aOString.getLength(); if (!bTest) - SAL_WARN("sc", "ScDocShell::DBaseExport encoding error, string with default replacements: ``" << aString << "''\n"); + SAL_WARN("sc", "ScDocShell::DBaseExport encoding error, string with default replacements: ``" << aString << "''"); } else nLen = aString.getLength() * sizeof(sal_Unicode); @@ -1080,7 +1080,7 @@ sal_uLong ScDocShell::DBaseExport( const OUString& rFullFileName, rtl_TextEncodi pColLengths[nCol] < nLen) { bTest = false; - SAL_INFO("sc", "ScDocShell::DBaseExport: field width: " << pColLengths[nCol] << ", encoded length: " << nLen << "\n"); + SAL_INFO("sc", "ScDocShell::DBaseExport: field width: " << pColLengths[nCol] << ", encoded length: " << nLen); } } else diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index 9d006f7f8e23..25bac55420c2 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -397,7 +397,7 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView* } catch( uno::Exception& ) { - OSL_FAIL( "May need error handling here!\n" ); + OSL_FAIL( "May need error handling here!" ); } } else @@ -694,7 +694,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawV } catch( uno::Exception& ) { - OSL_FAIL( "Chart wizard couldn't be positioned automatically\n" ); + OSL_FAIL( "Chart wizard couldn't be positioned automatically" ); } } diff --git a/sc/source/ui/miscdlgs/sharedocdlg.cxx b/sc/source/ui/miscdlgs/sharedocdlg.cxx index 4add1fb94faf..b9b672fd2756 100644 --- a/sc/source/ui/miscdlgs/sharedocdlg.cxx +++ b/sc/source/ui/miscdlgs/sharedocdlg.cxx @@ -197,7 +197,7 @@ void ScShareDocumentDlg::UpdateView() } catch ( uno::Exception& ) { - OSL_FAIL( "ScShareDocumentDlg::UpdateView(): caught exception\n" ); + OSL_FAIL( "ScShareDocumentDlg::UpdateView(): caught exception" ); m_pLbUsers->Clear(); m_pLbUsers->InsertEntry( m_aStrNoUserData ); } |