summaryrefslogtreecommitdiff
path: root/cui/source/customize/cfg.cxx
diff options
context:
space:
mode:
authorMarcin eXine M <exine@jun.pl>2010-11-02 13:40:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-02 14:54:40 +0000
commitf525717534829abb4ca618e0fcb394ae4b95755a (patch)
tree0ce6c9179fd1c97b55f50a890a4ec232c54e7960 /cui/source/customize/cfg.cxx
parent4fd29f3d182f2c651b0923e8a58d7df74e47b0a4 (diff)
removed unnecessary comments and whitespaces, dead code
Diffstat (limited to 'cui/source/customize/cfg.cxx')
-rw-r--r--cui/source/customize/cfg.cxx45
1 files changed, 2 insertions, 43 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 46296a3f6f1f..2d4163dfb14c 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -56,7 +56,6 @@
#include <toolkit/unohlp.hxx>
#include <algorithm>
-//add
#include <cuires.hrc>
#include "cfg.hrc"
#include "helpid.hrc"
@@ -150,7 +149,7 @@ void printPropertySet(
uno::Any a = xPropSet->getPropertyValue( aPropDetails[i].Name );
- if ( ( a >>= tmp ) /* && tmp.getLength() != 0 */ )
+ if ( a >>= tmp )
{
OSL_TRACE("%s: Got property: %s = %s",
PRTSTR(prefix), PRTSTR(aPropDetails[i].Name), PRTSTR(tmp));
@@ -223,10 +222,6 @@ OUString replaceSaveInName(
name = rMessage.replaceAt(
pos, placeholder.getLength(), rSaveInName );
}
- else
- {
- // don't change the message
- }
return name;
}
@@ -2637,7 +2632,7 @@ IMPL_LINK( SvxMenuConfigPage, MenuSelectHdl, MenuButton *, pButton )
GetSaveInData()->SetModified( TRUE );
}
- // #i68101# Moemory leak (!)
+ // #i68101# Memory leak (!)
delete pNameDialog;
break;
@@ -3235,42 +3230,6 @@ SvxConfigEntry::GetProperties(
return aPropSeq;
}
-/*
-SvxMenuConfigEntry::SvxMenuConfigEntry(
- const uno::Sequence< beans::PropertyValue >& rProperties,
- const uno::Reference< container::XNameAccess >& rCommandToLabelMap )
- :
- SvxConfigEntry( rProperties, rCommandToLabelMap )
-{
- uno::Reference< container::XIndexAccess > aChildren;
-
- for ( sal_Int32 i = 0; i < rProperties.getLength(); i++ )
- {
- if ( rProperties[i].Name.equalsAscii( ITEM_DESCRIPTOR_CONTAINER ))
- {
- rProperties[i].Value >>= aChildren;
- }
- }
-
- if ( aChildren.is() )
- {
- SetPopup( TRUE );
- SetEntries( new SvxEntries() );
-
- uno::Sequence< beans::PropertyValue > aProps;
- for ( sal_Int32 i = 0; i < aChildren->getCount(); i++ )
- {
- if ( aChildren->getByIndex( i ) >>= aProps )
- {
- SvxConfigEntry* pEntry =
- new SvxMenuConfigEntry( aProps, rCommandToLabelMap );
- GetEntries()->push_back( pEntry );
- }
- }
- }
-}
-*/
-
SvxConfigEntry::SvxConfigEntry( const OUString& rDisplayName,
const OUString& rCommandURL, bool bPopup, bool bParentData )
: nId( 1 )