[Libreoffice-commits] .: cui/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Aug 26 04:06:23 PDT 2011


 cui/source/options/treeopt.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 319fcca010ceca3eacfd93e8768ae75008750127
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Fri Aug 26 13:05:37 2011 +0200

    OfaTreeOptionsDialog: no need to use a bool for a single iteration

diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index d8909c4..3673960 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


More information about the Libreoffice-commits mailing list