summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-10 08:31:13 +0200
committerNoel Grandin <noel@peralex.com>2013-12-12 13:15:24 +0200
commitfb847101519ad74c02183672c04ebf1d700aae83 (patch)
treefa391cb75ed11817804bb4b9fbafa7ee265b8dbe /sfx2/source/dialog
parent1957303363ea9bd308b5781da09beaa09df7420c (diff)
simplify - use OUString::startsWith where possible
Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/splitwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx
index 15ffacfb8716..f229df6e8fe5 100644
--- a/sfx2/source/dialog/splitwin.cxx
+++ b/sfx2/source/dialog/splitwin.cxx
@@ -272,7 +272,7 @@ SfxSplitWindow::SfxSplitWindow( Window* pParent, SfxChildAlignment eAl,
OUString aTemp;
if ( aUserItem >>= aTemp )
aWinData = aTemp;
- if ( !aWinData.isEmpty() && aWinData[0] == 'V' )
+ if ( aWinData.startsWith("V") )
{
pEmptyWin->nState = (sal_uInt16) aWinData.getToken( 1, ',' ).toInt32();
if ( pEmptyWin->nState & 2 )