diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-18 04:55:34 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-18 07:27:47 +0100 |
commit | d8037ae18a297229d1b79f8f76331abfd548350d (patch) | |
tree | 7eaa9f4cb012be19d2eca340236eebbc8e784f92 /sw/source/uibase/dochdl | |
parent | c2a91dc53431b5658f54ca4fd32ca79165e865af (diff) |
Get rid of aEmptyOUStr
Commit 8051bb7e18ccae0f639e65dfa86bcc18a5fb9108 had removed its "String"
counterpart.
Change-Id: Id873a259e7f4b2794e94dec83d08ed6b57298beb
Reviewed-on: https://gerrit.libreoffice.org/65299
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 8 | ||||
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 46 |
2 files changed, 27 insertions, 27 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 6331e5a1d08d..b486c3b3041a 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -479,8 +479,8 @@ bool SwGlossaryHdl::Expand(weld::Window* pParent, const OUString& rShortName, } else { - SvxMacro aStartMacro(aEmptyOUStr, aEmptyOUStr, STARBASIC); - SvxMacro aEndMacro(aEmptyOUStr, aEmptyOUStr, STARBASIC); + SvxMacro aStartMacro(OUString(), OUString(), STARBASIC); + SvxMacro aEndMacro(OUString(), OUString(), STARBASIC); GetMacros( aShortName, aStartMacro, aEndMacro, pGlossary.get() ); // StartAction must not be before HasSelection and DelRight, @@ -527,8 +527,8 @@ bool SwGlossaryHdl::InsertGlossary(const OUString &rName) return false; } - SvxMacro aStartMacro(aEmptyOUStr, aEmptyOUStr, STARBASIC); - SvxMacro aEndMacro(aEmptyOUStr, aEmptyOUStr, STARBASIC); + SvxMacro aStartMacro(OUString(), OUString(), STARBASIC); + SvxMacro aEndMacro(OUString(), OUString(), STARBASIC); GetMacros( rName, aStartMacro, aEndMacro, pGlos ); // StartAction must not be before HasSelection and DelRight, diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index a3e7872eb030..1e0130f292d6 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -461,7 +461,7 @@ bool SwTransferable::GetData( const DataFlavor& rFlavor, const OUString& rDestDo if( rURL.GetMap() ) m_pImageMap.reset(new ImageMap( *rURL.GetMap() )); else if( !rURL.GetURL().isEmpty() ) - m_pTargetURL.reset(new INetImage( aEmptyOUStr, rURL.GetURL(), + m_pTargetURL.reset(new INetImage(OUString(), rURL.GetURL(), rURL.GetTargetFrameName() )); } } @@ -699,16 +699,16 @@ bool SwTransferable::WriteObject( tools::SvRef<SotStorageStream>& xStream, break; case SWTRANSFER_OBJECTTYPE_HTML: - GetHTMLWriter( aEmptyOUStr, OUString(), xWrt ); + GetHTMLWriter(OUString(), OUString(), xWrt); break; case SWTRANSFER_OBJECTTYPE_RTF: case SWTRANSFER_OBJECTTYPE_RICHTEXT: - GetRTFWriter( aEmptyOUStr, OUString(), xWrt ); + GetRTFWriter(OUString(), OUString(), xWrt); break; case SWTRANSFER_OBJECTTYPE_STRING: - GetASCWriter( aEmptyOUStr, OUString(), xWrt ); + GetASCWriter(OUString(), OUString(), xWrt); if( xWrt.is() ) { SwAsciiOptions aAOpt; @@ -1717,7 +1717,7 @@ bool SwTransferable::PasteFileContent( TransferableDataHelper& rData, rSh.SetChgLnk( Link<SwCursorShell*,void>() ); const SwPosition& rInsPos = *rSh.GetCursor()->Start(); - SwReader aReader( *pStream, aEmptyOUStr, OUString(), *rSh.GetCursor() ); + SwReader aReader(*pStream, OUString(), OUString(), *rSh.GetCursor()); rSh.SaveTableBoxContent( &rInsPos ); if( aReader.Read( *pRead ).IsError() ) pResId = STR_ERROR_CLPBRD_READ; @@ -1813,7 +1813,7 @@ bool SwTransferable::PasteOLE( TransferableDataHelper& rData, SwWrtShell& rSh, if( pRead ) { SwPaM &rPAM = *rSh.GetCursor(); - SwReader aReader( xStore, aEmptyOUStr, rPAM ); + SwReader aReader(xStore, OUString(), rPAM); if( ! aReader.Read( *pRead ).IsError() ) bRet = true; else if( bMsg ) @@ -1991,7 +1991,7 @@ bool SwTransferable::PasteTargetURL( TransferableDataHelper& rData, //!!! check at FileSystem - only then it make sense to test graphics !!! Graphic aGraphic; GraphicFilter &rFlt = GraphicFilter::GetGraphicFilter(); - bRet = ERRCODE_NONE == GraphicFilter::LoadGraphic( sURL, aEmptyOUStr, aGraphic, &rFlt ); + bRet = ERRCODE_NONE == GraphicFilter::LoadGraphic(sURL, OUString(), aGraphic, &rFlt); if( bRet ) { @@ -2002,7 +2002,7 @@ bool SwTransferable::PasteTargetURL( TransferableDataHelper& rData, { case SwPasteSdr::Insert: SwTransferable::SetSelInShell( rSh, false, pPt ); - rSh.Insert( sURL, aEmptyOUStr, aGraphic ); + rSh.Insert(sURL, OUString(), aGraphic); break; case SwPasteSdr::Replace: @@ -2013,18 +2013,18 @@ bool SwTransferable::PasteTargetURL( TransferableDataHelper& rData, SwTransferable::SetSelInShell( rSh, true, &aPt ); } else - rSh.ReRead( sURL, aEmptyOUStr, &aGraphic ); + rSh.ReRead(sURL, OUString(), &aGraphic); break; case SwPasteSdr::SetAttr: if( rSh.IsObjSelected() ) rSh.Paste( aGraphic, OUString() ); else if( OBJCNT_GRF == rSh.GetObjCntTypeOfSelection() ) - rSh.ReRead( sURL, aEmptyOUStr, &aGraphic ); + rSh.ReRead(sURL, OUString(), &aGraphic); else { SwTransferable::SetSelInShell( rSh, false, pPt ); - rSh.Insert( sURL, aEmptyOUStr, aGraphic ); + rSh.Insert(sURL, OUString(), aGraphic); } break; default: @@ -2357,7 +2357,7 @@ bool SwTransferable::PasteGrf( TransferableDataHelper& rData, SwWrtShell& rSh, { //!!! check at FileSystem - only then it makes sense to test the graphics !!! GraphicFilter &rFlt = GraphicFilter::GetGraphicFilter(); - bRet = ERRCODE_NONE == GraphicFilter::LoadGraphic( aBkmk.GetURL(), aEmptyOUStr, + bRet = ERRCODE_NONE == GraphicFilter::LoadGraphic(aBkmk.GetURL(), OUString(), aGraphic, &rFlt ); if( !bRet && SwPasteSdr::SetAttr == nAction && @@ -2398,7 +2398,7 @@ bool SwTransferable::PasteGrf( TransferableDataHelper& rData, SwWrtShell& rSh, case SwPasteSdr::Insert: { SwTransferable::SetSelInShell( rSh, false, pPt ); - rSh.Insert( sURL, aEmptyOUStr, aGraphic, nullptr, nAnchorType ); + rSh.Insert(sURL, OUString(), aGraphic, nullptr, nAnchorType); break; } @@ -2412,14 +2412,14 @@ bool SwTransferable::PasteGrf( TransferableDataHelper& rData, SwWrtShell& rSh, // a writer graphic; maybe this is an option later again if wanted rSh.Paste( aGraphic, sURL ); - // rSh.ReplaceSdrObj( sURL, aEmptyOUStr, &aGraphic ); + // rSh.ReplaceSdrObj(sURL, OUString(), &aGraphic); // Point aPt( pPt ? *pPt : rSh.GetCursorDocPos() ); // SwTransferable::SetSelInShell( rSh, true, &aPt ); } else { // set graphic at writer graphic without link - rSh.ReRead( sURL, aEmptyOUStr, &aGraphic ); + rSh.ReRead(sURL, OUString(), &aGraphic); } break; @@ -2447,12 +2447,12 @@ bool SwTransferable::PasteGrf( TransferableDataHelper& rData, SwWrtShell& rSh, else if( OBJCNT_GRF == rSh.GetObjCntTypeOfSelection() ) { // set as linked graphic at writer graphic frame - rSh.ReRead( sURL, aEmptyOUStr, &aGraphic ); + rSh.ReRead(sURL, OUString(), &aGraphic); } else { SwTransferable::SetSelInShell( rSh, false, pPt ); - rSh.Insert( aBkmk.GetURL(), aEmptyOUStr, aGraphic ); + rSh.Insert(aBkmk.GetURL(), OUString(), aGraphic); } break; } @@ -2965,7 +2965,7 @@ bool SwTransferable::PasteSpecial( SwWrtShell& rSh, TransferableDataHelper& rDat } pDlg->SetObjName( pClipboard->m_aObjDesc.maClassName, SwResId(pResId) ); - pDlg->Insert( SotClipboardFormatId::EMBED_SOURCE, aEmptyOUStr ); + pDlg->Insert(SotClipboardFormatId::EMBED_SOURCE, OUString()); } } else @@ -2977,9 +2977,9 @@ bool SwTransferable::PasteSpecial( SwWrtShell& rSh, TransferableDataHelper& rDat } if( SwTransferable::TestAllowedFormat( rData, SotClipboardFormatId::EMBED_SOURCE, nDest )) - pDlg->Insert( SotClipboardFormatId::EMBED_SOURCE, aEmptyOUStr ); + pDlg->Insert(SotClipboardFormatId::EMBED_SOURCE, OUString()); if( SwTransferable::TestAllowedFormat( rData, SotClipboardFormatId::LINK_SOURCE, nDest )) - pDlg->Insert( SotClipboardFormatId::LINK_SOURCE, aEmptyOUStr ); + pDlg->Insert(SotClipboardFormatId::LINK_SOURCE, OUString()); } if( SwTransferable::TestAllowedFormat( rData, SotClipboardFormatId::LINK, nDest )) @@ -2987,7 +2987,7 @@ bool SwTransferable::PasteSpecial( SwWrtShell& rSh, TransferableDataHelper& rDat for( SotClipboardFormatId* pIds = aPasteSpecialIds; *pIds != SotClipboardFormatId::NONE; ++pIds ) if( SwTransferable::TestAllowedFormat( rData, *pIds, nDest )) - pDlg->Insert( *pIds, aEmptyOUStr ); + pDlg->Insert(*pIds, OUString()); SotClipboardFormatId nFormat = pDlg->GetFormat( rData.GetTransferable() ); @@ -3052,7 +3052,7 @@ void SwTransferable::FillClipFormatItem( const SwWrtShell& rSh, for( SotClipboardFormatId* pIds = aPasteSpecialIds; *pIds != SotClipboardFormatId::NONE; ++pIds ) if( SwTransferable::TestAllowedFormat( rData, *pIds, nDest )) - rToFill.AddClipbrdFormat( *pIds, aEmptyOUStr ); + rToFill.AddClipbrdFormat(*pIds, OUString()); } void SwTransferable::SetDataForDragAndDrop( const Point& rSttPos ) @@ -3719,7 +3719,7 @@ SwTrnsfrDdeLink::SwTrnsfrDdeLink( SwTransferable& rTrans, SwWrtShell& rSh ) { refObj->AddConnectAdvise( this ); refObj->AddDataAdvise( this, - aEmptyOUStr, + OUString(), ADVISEMODE_NODATA | ADVISEMODE_ONLYONCE ); nOldTimeOut = refObj->GetUpdateTimeout(); refObj->SetUpdateTimeout( 0 ); |