diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-06 10:17:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-06 13:56:49 +0200 |
commit | 7d6e751faa545552de7859cd6530926676caf09f (patch) | |
tree | af1f5451761b73f5769692ac6524454c375a591d /basic/source/runtime/stdobj1.cxx | |
parent | 84687944439f5a2d96d771429bf58bf49b084d8c (diff) |
loplugin:ostr basic
Change-Id: Ie5fc4676bd1cab2c0417b479bf08dda00936469a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167191
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/runtime/stdobj1.cxx')
-rw-r--r-- | basic/source/runtime/stdobj1.cxx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx index c24c59af95a3..533eb2f92f24 100644 --- a/basic/source/runtime/stdobj1.cxx +++ b/basic/source/runtime/stdobj1.cxx @@ -104,16 +104,16 @@ void SbStdPicture::PropHeight( SbxVariable* pVar, bool bWrite ) SbStdPicture::SbStdPicture() : - SbxObject( "Picture" ) + SbxObject( u"Picture"_ustr ) { // Properties - SbxVariable* p = Make( "Type", SbxClassType::Property, SbxVARIANT ); + SbxVariable* p = Make( u"Type"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::Read | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_TYPE ); - p = Make( "Width", SbxClassType::Property, SbxVARIANT ); + p = Make( u"Width"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::Read | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_WIDTH ); - p = Make( "Height", SbxClassType::Property, SbxVARIANT ); + p = Make( u"Height"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::Read | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_HEIGHT ); } @@ -208,7 +208,7 @@ void SbStdFont::PropName( SbxVariable* pVar, bool bWrite ) SbStdFont::SbStdFont() - : SbxObject( "Font" ) + : SbxObject( u"Font"_ustr ) , bBold(false) , bItalic(false) , bStrikeThrough(false) @@ -216,24 +216,24 @@ SbStdFont::SbStdFont() , nSize(0) { // Properties - SbxVariable* p = Make( "Bold", SbxClassType::Property, SbxVARIANT ); + SbxVariable* p = Make( u"Bold"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::ReadWrite | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_BOLD ); - p = Make( "Italic", SbxClassType::Property, SbxVARIANT ); + p = Make( u"Italic"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::ReadWrite | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_ITALIC ); - p = Make( "StrikeThrough", SbxClassType::Property, SbxVARIANT ); + p = Make( u"StrikeThrough"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::ReadWrite | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_STRIKETHROUGH ); - p = Make( "Underline", SbxClassType::Property, SbxVARIANT ); + p = Make( u"Underline"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::ReadWrite | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_UNDERLINE ); - p = Make( "Size", SbxClassType::Property, SbxVARIANT ); + p = Make( u"Size"_ustr, SbxClassType::Property, SbxVARIANT ); p->SetFlags( SbxFlagBits::ReadWrite | SbxFlagBits::DontStore ); p->SetUserData( ATTR_IMP_SIZE ); // handle name property yourself - p = Find( "Name", SbxClassType::Property ); + p = Find( u"Name"_ustr, SbxClassType::Property ); assert(p && "No Name Property"); p->SetUserData( ATTR_IMP_NAME ); } @@ -360,29 +360,29 @@ void SbStdClipboard::MethSetText( SbxArray const * pPar_ ) SbStdClipboard::SbStdClipboard() : - SbxObject( "Clipboard" ) + SbxObject( u"Clipboard"_ustr ) { - SbxVariable* p = Find( "Name", SbxClassType::Property ); + SbxVariable* p = Find( u"Name"_ustr, SbxClassType::Property ); assert(p && "No Name Property"); p->SetUserData( ATTR_IMP_NAME ); // register methods - p = Make( "Clear", SbxClassType::Method, SbxEMPTY ); + p = Make( u"Clear"_ustr, SbxClassType::Method, SbxEMPTY ); p->SetFlag( SbxFlagBits::DontStore ); p->SetUserData( METH_CLEAR ); - p = Make( "GetData", SbxClassType::Method, SbxEMPTY ); + p = Make( u"GetData"_ustr, SbxClassType::Method, SbxEMPTY ); p->SetFlag( SbxFlagBits::DontStore ); p->SetUserData( METH_GETDATA ); - p = Make( "GetFormat", SbxClassType::Method, SbxEMPTY ); + p = Make( u"GetFormat"_ustr, SbxClassType::Method, SbxEMPTY ); p->SetFlag( SbxFlagBits::DontStore ); p->SetUserData( METH_GETFORMAT ); - p = Make( "GetText", SbxClassType::Method, SbxEMPTY ); + p = Make( u"GetText"_ustr, SbxClassType::Method, SbxEMPTY ); p->SetFlag( SbxFlagBits::DontStore ); p->SetUserData( METH_GETTEXT ); - p = Make( "SetData", SbxClassType::Method, SbxEMPTY ); + p = Make( u"SetData"_ustr, SbxClassType::Method, SbxEMPTY ); p->SetFlag( SbxFlagBits::DontStore ); p->SetUserData( METH_SETDATA ); - p = Make( "SetText", SbxClassType::Method, SbxEMPTY ); + p = Make( u"SetText"_ustr, SbxClassType::Method, SbxEMPTY ); p->SetFlag( SbxFlagBits::DontStore ); p->SetUserData( METH_SETTEXT ); } |