From d52481325bc0dcc50af37d14cce68abfe9659564 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 20 Dec 2024 13:44:49 +0100 Subject: The initialization of pResId is not used Change-Id: Ic8409352e347d01fe5cc15458d18f612084cccab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178913 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sw/source/uibase/dochdl/swdtflvr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source') diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index f6b1e9d9377a..ee105beab1f0 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -2174,7 +2174,6 @@ bool CanSkipInvalidateNumRules(const SwPosition& rInsertPosition) bool SwTransferable::PasteFileContent( const TransferableDataHelper& rData, SwWrtShell& rSh, SotClipboardFormatId nFormat, bool bMsg, bool bIgnoreComments ) { - TranslateId pResId = STR_CLPBRD_FORMAT_ERROR; bool bRet = false; MSE40HTMLClipFormatObj aMSE40ClpObj; @@ -2246,6 +2245,7 @@ bool SwTransferable::PasteFileContent( const TransferableDataHelper& rData, break; } + TranslateId pResId; if( pStream && pRead ) { Link aOldLink( rSh.GetChgLnk() ); -- cgit