summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbarange.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-22 12:46:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-23 08:37:41 +0200
commitdddba389b79647f69f447e576cf7e880be5661c6 (patch)
tree10d8da4fb55cf603a70229abddc460b0646ed237 /sw/source/ui/vba/vbarange.cxx
parentb1f4a39a326bcaf06068914c03c3dea6f9aeebd8 (diff)
loplugin:ostr in sw/../vba
Change-Id: I73491b481fb82785a21f7239fff62f812dd7440c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167953 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/vba/vbarange.cxx')
-rw-r--r--sw/source/ui/vba/vbarange.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx
index c48dd6193c2f..39d369c92144 100644
--- a/sw/source/ui/vba/vbarange.cxx
+++ b/sw/source/ui/vba/vbarange.cxx
@@ -72,7 +72,7 @@ void SwVbaRange::initialize( const uno::Reference< text::XTextRange >& rStart, c
mxTextCursor = SwVbaRangeHelper::initCursor( rStart, mxText );
if( !mxTextCursor.is() )
- throw uno::RuntimeException("Fails to create text cursor" );
+ throw uno::RuntimeException(u"Fails to create text cursor"_ustr );
mxTextCursor->collapseToStart();
if( rEnd.is() )
@@ -207,7 +207,7 @@ void SAL_CALL SwVbaRange::InsertBreak(const uno::Any& _breakType)
}
uno::Reference< beans::XPropertySet > xProp( mxTextCursor, uno::UNO_QUERY_THROW );
- xProp->setPropertyValue("BreakType", uno::Any( eBreakType ) );
+ xProp->setPropertyValue(u"BreakType"_ustr, uno::Any( eBreakType ) );
}
}
@@ -223,7 +223,7 @@ SwVbaRange::Select()
void SAL_CALL
SwVbaRange::InsertParagraph()
{
- mxTextCursor->setString( "" );
+ mxTextCursor->setString( u""_ustr );
InsertParagraphBefore();
}
@@ -252,17 +252,17 @@ SwVbaRange::getParagraphFormat()
void SAL_CALL
SwVbaRange::setParagraphFormat( const uno::Reference< word::XParagraphFormat >& /*rParagraphFormat*/ )
{
- throw uno::RuntimeException("Not implemented" );
+ throw uno::RuntimeException(u"Not implemented"_ustr );
}
void SwVbaRange::GetStyleInfo(OUString& aStyleName, OUString& aStyleType )
{
uno::Reference< beans::XPropertySet > xProp( mxTextCursor, uno::UNO_QUERY_THROW );
- if( ( xProp->getPropertyValue("CharStyleName") >>= aStyleName ) && !aStyleName.isEmpty() )
+ if( ( xProp->getPropertyValue(u"CharStyleName"_ustr) >>= aStyleName ) && !aStyleName.isEmpty() )
{
aStyleType = "CharacterStyles";
}
- else if( ( xProp->getPropertyValue("ParaStyleName") >>= aStyleName ) && !aStyleName.isEmpty() )
+ else if( ( xProp->getPropertyValue(u"ParaStyleName"_ustr) >>= aStyleName ) && !aStyleName.isEmpty() )
{
aStyleType = "ParagraphStyles";
}
@@ -331,10 +331,10 @@ SwVbaRange::PageSetup( )
uno::Reference< beans::XPropertySet > xParaProps( mxTextCursor, uno::UNO_QUERY_THROW );
uno::Reference< frame::XModel > xModel( mxTextDocument, uno::UNO_QUERY_THROW );
OUString aPageStyleName;
- xParaProps->getPropertyValue("PageStyleName") >>= aPageStyleName;
+ xParaProps->getPropertyValue(u"PageStyleName"_ustr) >>= aPageStyleName;
uno::Reference< style::XStyleFamiliesSupplier > xSytleFamSupp( xModel, uno::UNO_QUERY_THROW );
uno::Reference< container::XNameAccess > xSytleFamNames( xSytleFamSupp->getStyleFamilies(), uno::UNO_SET_THROW );
- uno::Reference< container::XNameAccess > xPageStyles( xSytleFamNames->getByName("PageStyles"), uno::UNO_QUERY_THROW );
+ uno::Reference< container::XNameAccess > xPageStyles( xSytleFamNames->getByName(u"PageStyles"_ustr), uno::UNO_QUERY_THROW );
uno::Reference< beans::XPropertySet > xPageProps( xPageStyles->getByName( aPageStyleName ), uno::UNO_QUERY_THROW );
return uno::Any( uno::Reference< word::XPageSetup >( new SwVbaPageSetup( this, mxContext, xModel, xPageProps ) ) );
}
@@ -418,7 +418,7 @@ SwVbaRange::Fields( const uno::Any& index )
OUString
SwVbaRange::getServiceImplName()
{
- return "SwVbaRange";
+ return u"SwVbaRange"_ustr;
}
uno::Sequence< OUString >
@@ -426,7 +426,7 @@ SwVbaRange::getServiceNames()
{
static uno::Sequence< OUString > const aServiceNames
{
- "ooo.vba.word.Range"
+ u"ooo.vba.word.Range"_ustr
};
return aServiceNames;
}