diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-26 11:09:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-26 11:09:27 +0100 |
commit | e073da6d6b06d358466ceebdb120c7f1ea01ec29 (patch) | |
tree | da45cd4638105cb47e28150865dc007c281dd864 /cui | |
parent | only allowed to create these via factory methods now (diff) | |
download | core-e073da6d6b06d358466ceebdb120c7f1ea01ec29.tar.gz core-e073da6d6b06d358466ceebdb120c7f1ea01ec29.zip |
private operator delete, use factory
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optcolor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index f8734841a9e5..3a50fc23e963 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() ); } |