[Libreoffice-commits] .: cui/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Sep 26 03:09:32 PDT 2011


 cui/source/options/optcolor.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e073da6d6b06d358466ceebdb120c7f1ea01ec29
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Sep 26 11:09:27 2011 +0100

    private operator delete, use factory

diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index f873484..3a50fc2 100644
--- a/cui/source/options/optcolor.cxx
+++ b/cui/source/options/optcolor.cxx
@@ -953,10 +953,10 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe
         }
     }
 
-    XColorList aColorTable( SvtPathOptions().GetPalettePath() );
-    for( sal_Int32 i = 0; i < aColorTable.Count(); i++ )
+    XColorListRef xColorTable = XColorList::CreateStdColorList();
+    for( sal_Int32 i = 0; i < xColorTable->Count(); i++ )
     {
-        XColorEntry* pEntry = aColorTable.GetColor(i);
+        XColorEntry* pEntry = xColorTable->GetColor(i);
         aColorBoxes[0]->InsertEntry( pEntry->GetColor(), pEntry->GetName() );
     }
 


More information about the Libreoffice-commits mailing list