summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-04-01 21:54:30 +0200
committerMichael Stahl <mstahl@redhat.com>2015-04-01 22:24:12 +0200
commit53abb4f198a013433eb0d27677b9940f5ddec624 (patch)
tree12c9515fe894a309838526b65b1ca2e5be684a60
parentd7f62705ab4fbfd4768c633cbf9dd6d0521197ce (diff)
sw: remove utterly pointless assignment in SwXFlatParagraph::changeText()
It will be set to 0 at the end anyway. Change-Id: If9a8a70057a03980c37951f9ce74e1ae27541bfb
-rw-r--r--sw/source/core/unocore/unoflatpara.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx
index b6a7c5f3bfbf..ae152cf7fc1d 100644
--- a/sw/source/core/unocore/unoflatpara.cxx
+++ b/sw/source/core/unocore/unoflatpara.cxx
@@ -278,9 +278,7 @@ void SAL_CALL SwXFlatParagraph::changeText(::sal_Int32 nPos, ::sal_Int32 nLen, c
xPropSet->setPropertyValue( aAttributes[i].Name, aAttributes[i].Value );
}
- mpTxtNode = pOldTxtNode; // setPropertyValue() modifies this. We restore the old state.
-
- IDocumentContentOperations* pIDCO = mpTxtNode->getIDocumentContentOperations();
+ IDocumentContentOperations* pIDCO = pOldTxtNode->getIDocumentContentOperations();
pIDCO->ReplaceRange( aPaM, aNewText, false );
mpTxtNode = 0;