summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-08-26 13:05:37 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-08-26 13:05:56 +0200
commit319fcca010ceca3eacfd93e8768ae75008750127 (patch)
treec8803dcd4484480e9d2cb0e659cbd4eaa54e5af1 /cui
parent797caeb095848b6b6936c22d5b0409da7810fbba (diff)
OfaTreeOptionsDialog: no need to use a bool for a single iteration
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/treeopt.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index d8909c4bdde1..3673960c57c6 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -1854,10 +1854,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame )
AddTabPage( nPageId, sNewTitle, nGroup );
}
}
- // private iteration hack for Improvement Program
- // hack for OOo 3.1
- // should not be in found in any later release
- for(bool bOnce = false; bOnce==false; bOnce=true)
+ do
{
String sNewTitle = C2U("Improvement Program");
{
@@ -1890,6 +1887,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame )
AddTabPage( nPageId, sNewTitle, nGroup );
}
}
+ while (0);
}
// Load and Save options