summaryrefslogtreecommitdiff
path: root/oox/source/ole/vbacontrol.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 08:26:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 09:51:34 +0200
commit239ceb315521d9e88fb8290ba391c70a53095af4 (patch)
tree89d2c12874823ae5eea38385e5f89d5cc902b707 /oox/source/ole/vbacontrol.cxx
parent58a9c936bb065384d50e122ee2ac9037dd60cc32 (diff)
loplugin:ostr in oox
Change-Id: I08124ce2da1facbe2e84aa4a7a8e25fec24fa962 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167428 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/ole/vbacontrol.cxx')
-rw-r--r--oox/source/ole/vbacontrol.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/ole/vbacontrol.cxx b/oox/source/ole/vbacontrol.cxx
index dd9de50a2501..a194a910f4b8 100644
--- a/oox/source/ole/vbacontrol.cxx
+++ b/oox/source/ole/vbacontrol.cxx
@@ -153,7 +153,7 @@ VbaDummyFormControl::VbaDummyFormControl( const OUString& rName )
mxCtrlModel = std::make_shared<AxLabelModel>();
mxCtrlModel->setAwtModelMode();
- mxCtrlModel->importProperty( XML_Size, "10;10" );
+ mxCtrlModel->importProperty( XML_Size, u"10;10"_ustr );
}
} // namespace
@@ -393,7 +393,7 @@ void VbaFormControl::importStorage( StorageBase& rStrg, const AxClassTable& rCla
/* Open the 'f' stream containing the model of this control and a list
of site models for all child controls. */
- BinaryXInputStream aFStrm( rStrg.openInputStream( "f" ), true );
+ BinaryXInputStream aFStrm( rStrg.openInputStream( u"f"_ustr ), true );
OSL_ENSURE( !aFStrm.isEof(), "VbaFormControl::importStorage - missing 'f' stream" );
/* Read the properties of this container control and the class table
@@ -409,7 +409,7 @@ void VbaFormControl::importStorage( StorageBase& rStrg, const AxClassTable& rCla
/* Open the 'o' stream containing models of embedded simple
controls. Stream may be empty or missing, if this control
contains no controls or only container controls. */
- BinaryXInputStream aOStrm( rStrg.openInputStream( "o" ), true );
+ BinaryXInputStream aOStrm( rStrg.openInputStream( u"o"_ustr ), true );
/* Iterate over all embedded controls, import model from 'o'
stream (for embedded simple controls) or from the substorage
@@ -424,7 +424,7 @@ void VbaFormControl::importStorage( StorageBase& rStrg, const AxClassTable& rCla
AxMultiPageModel* pMultiPage = dynamic_cast< AxMultiPageModel* >( pContainerModel );
assert(pMultiPage);
{
- BinaryXInputStream aXStrm( rStrg.openInputStream( "x" ), true );
+ BinaryXInputStream aXStrm( rStrg.openInputStream( u"x"_ustr ), true );
pMultiPage->importPageAndMultiPageProperties( aXStrm, maControls.size() );
}
typedef std::unordered_map< sal_uInt32, std::shared_ptr< VbaFormControl > > IdToPageMap;
@@ -796,7 +796,7 @@ void VbaUserForm::importForm( const Reference< XNameContainer >& rxDialogLib,
return;
// check that the '03VBFrame' stream exists, this is required for forms
- BinaryXInputStream aInStrm( rVbaFormStrg.openInputStream( "\003VBFrame" ), true );
+ BinaryXInputStream aInStrm( rVbaFormStrg.openInputStream( u"\003VBFrame"_ustr ), true );
OSL_ENSURE( !aInStrm.isEof(), "VbaUserForm::importForm - missing \\003VBFrame stream" );
if( aInStrm.isEof() )
return;