diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-12 08:27:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-12 10:02:35 +0200 |
commit | 8ab3f399187922452e3f29ce5e1fb933bd3a22a9 (patch) | |
tree | f308c450453f85fac076cc766dbfdec04eb5d370 /sw | |
parent | 576611895e51186d38ddefa10ed8d66075d9de37 (diff) |
All occurrences of WriteOStringBuffer(b) can easily be replaced...
...with WriteOString(b.makeStringAndClear())
Change-Id: I46be4f80d6633b5c51a2c3d99f9faf0db5764d3f
Reviewed-on: https://gerrit.libreoffice.org/80704
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/dbg_lay.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/html/htmlbas.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/html/htmlfldw.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/layout/dbg_lay.cxx b/sw/source/core/layout/dbg_lay.cxx index c4bb72bf294c..46dfae637ef2 100644 --- a/sw/source/core/layout/dbg_lay.cxx +++ b/sw/source/core/layout/dbg_lay.cxx @@ -787,10 +787,10 @@ void SwImplProtocol::Record_( const SwFrame* pFrame, PROT nFunction, DbgAction n aOut.append(lcl_CellInfo(pCellFrame)); } - pStream->WriteOStringBuffer( aOut ); + SAL_INFO("sw.layout.debug", aOut.getStr()); + pStream->WriteOString( aOut.makeStringAndClear() ); (*pStream) << endl; // output pStream->Flush(); // to the disk, so we can read it immediately - SAL_INFO("sw.layout.debug", aOut.getStr()); if( ++nLineCount >= nMaxLines ) // max number of lines reached? { SAL_WARN("sw.layout.debug", "max number of lines reached"); diff --git a/sw/source/filter/html/htmlbas.cxx b/sw/source/filter/html/htmlbas.cxx index 5b4e846c2ed2..aaa7dbbbaa89 100644 --- a/sw/source/filter/html/htmlbas.cxx +++ b/sw/source/filter/html/htmlbas.cxx @@ -285,7 +285,7 @@ void SwHTMLWriter::OutBasic() .append(OOO_STRING_SVTOOLS_HTML_META_content_script_type) .append("\" ").append(OOO_STRING_SVTOOLS_HTML_O_content) .append("=\"text/x-"); - Strm().WriteOStringBuffer( sOut ); + Strm().WriteOString( sOut.makeStringAndClear() ); // Entities aren't welcome here Strm().WriteOString( OUStringToOString(sLang, m_eDestEnc) ) .WriteCharPtr( "\">" ); diff --git a/sw/source/filter/html/htmlfldw.cxx b/sw/source/filter/html/htmlfldw.cxx index 776b8e6ccf40..0a581c6e06e9 100644 --- a/sw/source/filter/html/htmlfldw.cxx +++ b/sw/source/filter/html/htmlfldw.cxx @@ -514,7 +514,7 @@ Writer& OutHTML_SwFormatField( Writer& rWrt, const SfxPoolItem& rHt ) sOut.append('<').append(OOO_STRING_SVTOOLS_HTML_comment) .append(' ').append(OUStringToOString(sComment, static_cast<SwHTMLWriter&>(rWrt).m_eDestEnc)).append(" -->"); - rWrt.Strm().WriteOStringBuffer( sOut ); + rWrt.Strm().WriteOString( sOut.makeStringAndClear() ); } } else if( SwFieldIds::Script == pFieldTyp->Which() ) @@ -567,7 +567,7 @@ Writer& OutHTML_SwFormatField( Writer& rWrt, const SfxPoolItem& rHt ) Color& rColor = SwViewOption::GetFieldShadingsColor(); sOut.append(GetCSS1_Color(rColor)); sOut.append("\">"); - rWrt.Strm().WriteOStringBuffer(sOut); + rWrt.Strm().WriteOString(sOut.makeStringAndClear()); } OutHTML_SwField( rWrt, pField, pTextField->GetTextNode(), |