summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-21 13:03:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-21 13:12:15 +0000
commit796ace6f14a1d2676b11609b624fea43675486fe (patch)
treefbf3bb6d1706d2dc263b1f4f93daefd917c61f2e
parent8e89a8af9246da45d78f8d03468cd8eba2369076 (diff)
use same post-decrement symbol throughout
rather than have half and half Change-Id: I388b2abdcaceec1bf770d581dd5a8174158871ac
-rw-r--r--svx/source/sdr/properties/textproperties.cxx20
1 files changed, 9 insertions, 11 deletions
diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx
index d2ba014e8494..e87d52509653 100644
--- a/svx/source/sdr/properties/textproperties.cxx
+++ b/svx/source/sdr/properties/textproperties.cxx
@@ -82,13 +82,13 @@ namespace sdr
void TextProperties::ItemSetChanged(const SfxItemSet& rSet)
{
SdrTextObj& rObj = static_cast<SdrTextObj&>(GetSdrObject());
- const svx::ITextProvider& rTextProvider(getTextProvider());
- sal_Int32 nText = rTextProvider.getTextCount();
// #i101556# ItemSet has changed -> new version
maVersion++;
- while( --nText >= 0 )
+ const svx::ITextProvider& rTextProvider(getTextProvider());
+ sal_Int32 nText = rTextProvider.getTextCount();
+ while (nText--)
{
SdrText* pText = rTextProvider.getText( nText );
@@ -173,7 +173,7 @@ namespace sdr
const svx::ITextProvider& rTextProvider(getTextProvider());
sal_Int32 nCount = rTextProvider.getTextCount();
- while( nCount-- )
+ while (nCount--)
{
SdrText* pText = rTextProvider.getText( nCount );
OutlinerParaObject* pParaObj = pText->GetOutlinerParaObject();
@@ -246,8 +246,7 @@ namespace sdr
const svx::ITextProvider& rTextProvider(getTextProvider());
sal_Int32 nText = rTextProvider.getTextCount();
-
- while( --nText >= 0 )
+ while (nText--)
{
SdrText* pText = rTextProvider.getText( nText );
@@ -408,8 +407,7 @@ namespace sdr
Outliner* pOutliner = SdrMakeOutliner(OutlinerMode::OutlineObject, *rObj.GetModel());
const svx::ITextProvider& rTextProvider(getTextProvider());
sal_Int32 nText = rTextProvider.getTextCount();
-
- while( --nText >= 0 )
+ while (nText--)
{
SdrText* pText = rTextProvider.getText( nText );
@@ -563,7 +561,7 @@ namespace sdr
rObj.SetPortionInfoChecked(false);
sal_Int32 nText = rTextProvider.getTextCount();
- while( --nText >= 0 )
+ while (nText--)
{
OutlinerParaObject* pParaObj = rTextProvider.getText( nText )->GetOutlinerParaObject();
if( pParaObj )
@@ -586,7 +584,7 @@ namespace sdr
{
rObj.SetPortionInfoChecked(false);
sal_Int32 nText = rTextProvider.getTextCount();
- while( --nText >= 0 )
+ while (nText--)
{
OutlinerParaObject* pParaObj = rTextProvider.getText( nText )->GetOutlinerParaObject();
if( pParaObj )
@@ -608,7 +606,7 @@ namespace sdr
if(aOldName != aNewName)
{
sal_Int32 nText = rTextProvider.getTextCount();
- while( --nText >= 0 )
+ while (nText--)
{
OutlinerParaObject* pParaObj = rTextProvider.getText( nText )->GetOutlinerParaObject();
if( pParaObj )