summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbasections.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbasections.cxx')
-rw-r--r--sw/source/ui/vba/vbasections.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbasections.cxx b/sw/source/ui/vba/vbasections.cxx
index 2c9823b980d9..18ef74a5812e 100644
--- a/sw/source/ui/vba/vbasections.cxx
+++ b/sw/source/ui/vba/vbasections.cxx
@@ -65,7 +65,7 @@ public:
{
uno::Reference< style::XStyleFamiliesSupplier > xSytleFamSupp( mxModel, uno::UNO_QUERY_THROW );
uno::Reference< container::XNameAccess > xSytleFamNames( xSytleFamSupp->getStyleFamilies(), uno::UNO_QUERY_THROW );
- uno::Reference< container::XIndexAccess > xPageStyles( xSytleFamNames->getByName( OUString("PageStyles") ), uno::UNO_QUERY_THROW );
+ uno::Reference< container::XIndexAccess > xPageStyles( xSytleFamNames->getByName("PageStyles"), uno::UNO_QUERY_THROW );
sal_Int32 nCount = xPageStyles->getCount();
for( sal_Int32 index = 0; index < nCount; ++index )
{
@@ -148,7 +148,7 @@ SwVbaSections::PageSetup( ) throw (uno::RuntimeException)
uno::Reference< word::XSection > xSection( m_xIndexAccess->getByIndex( 0 ), uno::UNO_QUERY_THROW );
return xSection->PageSetup();
}
- throw uno::RuntimeException( OUString("There is no section"), uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException("There is no section", uno::Reference< uno::XInterface >() );
}
// XEnumerationAccess