summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/swxml.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-01-08 17:13:53 +0100
committerMichael Stahl <mst@openoffice.org>2010-01-08 17:13:53 +0100
commit5d6da5c1f774b02973085816bb0717d8a2c891a3 (patch)
treedf43436ef08efd1842910a749095d940e2e0b004 /sw/source/filter/xml/swxml.cxx
parent1f8d8b1e17487074cf77595ab9d9569858e6f04e (diff)
swunolocking1: #i105557#: SwXTextRange:
move static methods to namespace sw. clean up the implementation a little.
Diffstat (limited to 'sw/source/filter/xml/swxml.cxx')
-rw-r--r--sw/source/filter/xml/swxml.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx
index d53261ea3fe5..704b6af7fa74 100644
--- a/sw/source/filter/xml/swxml.cxx
+++ b/sw/source/filter/xml/swxml.cxx
@@ -788,9 +788,8 @@ ULONG XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, const S
}
else if( bInsertMode )
{
- uno::Reference<XTextRange> xInsertTextRange =
- SwXTextRange::CreateTextRangeFromPosition( &rDoc, *rPaM.GetPoint(),
- 0 );
+ const uno::Reference<text::XTextRange> xInsertTextRange =
+ SwXTextRange::CreateXTextRange(rDoc, *rPaM.GetPoint(), 0);
OUString sTextInsertModeRange(
RTL_CONSTASCII_USTRINGPARAM("TextInsertModeRange"));
xInfoSet->setPropertyValue( sTextInsertModeRange,