From 319fcca010ceca3eacfd93e8768ae75008750127 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 26 Aug 2011 13:05:37 +0200 Subject: OfaTreeOptionsDialog: no need to use a bool for a single iteration --- cui/source/options/treeopt.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cui') 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 -- cgit