diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-01-28 16:59:16 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-01-28 16:59:16 +0000 |
commit | c4a384a3fc10147dfd611e388cd69e35fa5d0689 (patch) | |
tree | 9f8578bd41193a0b8f3fa1b0da02002370cd49e9 /oox | |
parent | 3f4b29b8f2f99c83ba41b4e1c3e485d659f9e54a (diff) |
revert incorrect usage of RTL_CONSTASCII_STRINGPARAM on char * pointers
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/axbinaryreader.cxx | 2 | ||||
-rw-r--r-- | oox/source/ole/axcontrol.cxx | 26 | ||||
-rw-r--r-- | oox/source/ole/olehelper.cxx | 10 | ||||
-rw-r--r-- | oox/source/ole/vbacontrol.cxx | 6 |
4 files changed, 22 insertions, 22 deletions
diff --git a/oox/source/ole/axbinaryreader.cxx b/oox/source/ole/axbinaryreader.cxx index e5c0790ccdc8..585ed4f22c22 100644 --- a/oox/source/ole/axbinaryreader.cxx +++ b/oox/source/ole/axbinaryreader.cxx @@ -150,7 +150,7 @@ bool AxFontData::importGuidAndFont( BinaryInputStream& rInStrm ) OUString aGuid = OleHelper::importGuid( rInStrm ); if( aGuid.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "{AFC20920-DA4E-11CE-B943-00AA006887B4}" ) ) ) return importBinaryModel( rInStrm ); - if( aGuid.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( OLE_GUID_STDFONT ) ) ) + if( aGuid.equalsAscii( OLE_GUID_STDFONT ) ) return importStdFont( rInStrm ); return false; } diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx index b77b23821db8..bd484dc8d92b 100644 --- a/oox/source/ole/axcontrol.cxx +++ b/oox/source/ole/axcontrol.cxx @@ -1762,31 +1762,31 @@ EmbeddedControl::~EmbeddedControl() ControlModelRef EmbeddedControl::createModel( const OUString& rClassId ) { OUString aClassId = rClassId.toAsciiUpperCase(); - if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_COMMANDBUTTON ) ) ) + if( aClassId.equalsAscii( AX_GUID_COMMANDBUTTON ) ) mxModel.reset( new AxCommandButtonModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_LABEL ) ) ) + else if( aClassId.equalsAscii( AX_GUID_LABEL ) ) mxModel.reset( new AxLabelModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_IMAGE ) ) ) + else if( aClassId.equalsAscii( AX_GUID_IMAGE ) ) mxModel.reset( new AxImageModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_TOGGLEBUTTON ) ) ) + else if( aClassId.equalsAscii( AX_GUID_TOGGLEBUTTON ) ) mxModel.reset( new AxToggleButtonModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_CHECKBOX ) ) ) + else if( aClassId.equalsAscii( AX_GUID_CHECKBOX ) ) mxModel.reset( new AxCheckBoxModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_OPTIONBUTTON ) ) ) + else if( aClassId.equalsAscii( AX_GUID_OPTIONBUTTON ) ) mxModel.reset( new AxOptionButtonModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_TEXTBOX ) ) ) + else if( aClassId.equalsAscii( AX_GUID_TEXTBOX ) ) mxModel.reset( new AxTextBoxModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_LISTBOX ) ) ) + else if( aClassId.equalsAscii( AX_GUID_LISTBOX ) ) mxModel.reset( new AxListBoxModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_COMBOBOX ) ) ) + else if( aClassId.equalsAscii( AX_GUID_COMBOBOX ) ) mxModel.reset( new AxComboBoxModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_SPINBUTTON ) ) ) + else if( aClassId.equalsAscii( AX_GUID_SPINBUTTON ) ) mxModel.reset( new AxSpinButtonModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_SCROLLBAR ) ) ) + else if( aClassId.equalsAscii( AX_GUID_SCROLLBAR ) ) mxModel.reset( new AxScrollBarModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( AX_GUID_FRAME ) ) ) + else if( aClassId.equalsAscii( AX_GUID_FRAME ) ) mxModel.reset( new AxFrameModel ); - else if( aClassId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( COMCTL_GUID_SCROLLBAR_60 ) ) ) + else if( aClassId.equalsAscii( COMCTL_GUID_SCROLLBAR_60 ) ) mxModel.reset( new ComCtlScrollBarModel( 6 ) ); else mxModel.reset(); diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx index 327e436a1f82..271987b417fa 100644 --- a/oox/source/ole/olehelper.cxx +++ b/oox/source/ole/olehelper.cxx @@ -185,7 +185,7 @@ StdFontInfo::StdFontInfo( const ::rtl::OUString& rName, sal_uInt32 nHeight, { if( bWithGuid ) { - bool bIsStdFont = importGuid( rInStrm ).equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( OLE_GUID_STDFONT ) ); + bool bIsStdFont = importGuid( rInStrm ).equalsAscii( OLE_GUID_STDFONT ); OSL_ENSURE( bIsStdFont, "OleHelper::importStdFont - unexpected header GUID, expected StdFont" ); if( !bIsStdFont ) return false; @@ -203,7 +203,7 @@ StdFontInfo::StdFontInfo( const ::rtl::OUString& rName, sal_uInt32 nHeight, { if( bWithGuid ) { - bool bIsStdPic = importGuid( rInStrm ).equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( OLE_GUID_STDPIC ) ); + bool bIsStdPic = importGuid( rInStrm ).equalsAscii( OLE_GUID_STDPIC ); OSL_ENSURE( bIsStdPic, "OleHelper::importStdPic - unexpected header GUID, expected StdPic" ); if( !bIsStdPic ) return false; @@ -220,7 +220,7 @@ StdFontInfo::StdFontInfo( const ::rtl::OUString& rName, sal_uInt32 nHeight, { if( bWithGuid ) { - bool bIsStdHlink = importGuid( rInStrm ).equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( OLE_GUID_STDHLINK ) ); + bool bIsStdHlink = importGuid( rInStrm ).equalsAscii( OLE_GUID_STDHLINK ); OSL_ENSURE( bIsStdHlink, "OleHelper::importStdHlink - unexpected header GUID, expected StdHlink" ); if( !bIsStdHlink ) return false; @@ -250,7 +250,7 @@ StdFontInfo::StdFontInfo( const ::rtl::OUString& rName, sal_uInt32 nHeight, else // hyperlink moniker { OUString aGuid = importGuid( rInStrm ); - if( aGuid.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( OLE_GUID_FILEMONIKER ) ) ) + if( aGuid.equalsAscii( OLE_GUID_FILEMONIKER ) ) { // file name, maybe relative and with directory up-count sal_Int16 nUpLevels; @@ -271,7 +271,7 @@ StdFontInfo::StdFontInfo( const ::rtl::OUString& rName, sal_uInt32 nHeight, for( sal_Int16 nLevel = 0; nLevel < nUpLevels; ++nLevel ) orHlinkInfo.maTarget = CREATE_OUSTRING( "../" ) + orHlinkInfo.maTarget; } - else if( aGuid.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( OLE_GUID_URLMONIKER ) ) ) + else if( aGuid.equalsAscii( OLE_GUID_URLMONIKER ) ) { // URL, maybe relative and with leading '../' sal_Int32 nBytes = rInStrm.readInt32(); diff --git a/oox/source/ole/vbacontrol.cxx b/oox/source/ole/vbacontrol.cxx index 526704db3502..4a42f7043aaf 100644 --- a/oox/source/ole/vbacontrol.cxx +++ b/oox/source/ole/vbacontrol.cxx @@ -288,11 +288,11 @@ ControlModelRef VbaSiteModel::createControlModel( const AxClassTable& rClassTabl OSL_ENSURE( pGuid, "VbaSiteModel::createControlModel - invalid class table index" ); if( pGuid ) { - if( pGuid->equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( COMCTL_GUID_SCROLLBAR_60 ) ) ) + if( pGuid->equalsAscii( COMCTL_GUID_SCROLLBAR_60 ) ) xCtrlModel.reset( new ComCtlScrollBarModel( 6 ) ); - else if( pGuid->equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( COMCTL_GUID_PROGRESSBAR_50 ) ) ) + else if( pGuid->equalsAscii( COMCTL_GUID_PROGRESSBAR_50 ) ) xCtrlModel.reset( new ComCtlProgressBarModel( 5 ) ); - else if( pGuid->equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( COMCTL_GUID_PROGRESSBAR_60 ) ) ) + else if( pGuid->equalsAscii( COMCTL_GUID_PROGRESSBAR_60 ) ) xCtrlModel.reset( new ComCtlProgressBarModel( 6 ) ); } } |