summaryrefslogtreecommitdiffstats
path: root/svx/source/customshapes
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-14 12:10:39 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-14 12:11:48 -0200
commitdc04d67e94d9302278fc049d6617b62fe461ac66 (patch)
tree3dc4e0e5ee4406483cc1bc8c7bb690a1b2c6efe9 /svx/source/customshapes
parentSome cppcheck cleaning (diff)
downloadcore-dc04d67e94d9302278fc049d6617b62fe461ac66.tar.gz
core-dc04d67e94d9302278fc049d6617b62fe461ac66.zip
Fix for fdo43460 Part XXXVIII getLength() to isEmpty()
Part XXXVIII Modules svx
Diffstat (limited to 'svx/source/customshapes')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFontWork.cxx2
-rw-r--r--svx/source/customshapes/tbxcustomshapes.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
index 890f36934a9e..fa1adb656144 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
@@ -231,7 +231,7 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F
while( aParagraphIter != aParagraphIEnd )
{
const rtl::OUString& rText = aParagraphIter->aString;
- if ( rText.getLength() )
+ if ( !rText.isEmpty() )
{
// generating vcl/font
sal_uInt16 nScriptType = i18n::ScriptType::LATIN;
diff --git a/svx/source/customshapes/tbxcustomshapes.cxx b/svx/source/customshapes/tbxcustomshapes.cxx
index 9d22b4cd246d..c9a435362141 100644
--- a/svx/source/customshapes/tbxcustomshapes.cxx
+++ b/svx/source/customshapes/tbxcustomshapes.cxx
@@ -124,7 +124,7 @@ void SvxTbxCtlCustomShapes::StateChanged( sal_uInt16 nSID, SfxItemState eState,
SfxPopupWindowType SvxTbxCtlCustomShapes::GetPopupWindowType() const
{
- return( m_aCommand.getLength() == 0 ? SFX_POPUPWINDOW_ONCLICK : SFX_POPUPWINDOW_ONTIMEOUT);
+ return( m_aCommand.isEmpty() ? SFX_POPUPWINDOW_ONCLICK : SFX_POPUPWINDOW_ONTIMEOUT);
}
/*************************************************************************
@@ -145,7 +145,7 @@ SfxPopupWindow* SvxTbxCtlCustomShapes::CreatePopupWindow()
void SvxTbxCtlCustomShapes::Select( sal_Bool /*bMod1*/ )
{
- if ( m_aCommand.getLength() > 0 )
+ if ( !m_aCommand.isEmpty() )
{
com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aParamSeq( 0 );
Dispatch( m_aCommand, aParamSeq );
@@ -175,7 +175,7 @@ void SAL_CALL SvxTbxCtlCustomShapes::functionSelected( const ::rtl::OUString& rC
SolarMutexGuard aGuard;
if ( !m_bDisposed )
{
- if ( m_aCommand.getLength() > 0 )
+ if ( !m_aCommand.isEmpty() )
{
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame( getFrameInterface());
Image aImage = GetImage( xFrame, m_aCommand, hasBigImages() );
@@ -190,7 +190,7 @@ void SAL_CALL SvxTbxCtlCustomShapes::updateImage( ) throw (::com::sun::star::un
// We should update the button image of our parent (toolbar).
// Use the stored command to set the correct current image.
SolarMutexGuard aGuard;
- if ( m_aCommand.getLength() > 0 )
+ if ( !m_aCommand.isEmpty() )
{
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame( getFrameInterface());
Image aImage = GetImage( xFrame, m_aCommand, hasBigImages() );