summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2011-11-01 09:56:55 +0000
committerMichael Meeks <michael.meeks@suse.com>2011-11-01 11:06:26 +0000
commit75c1a8033a876b711c7b360565c99f831dd9d2e8 (patch)
tree099dd4bc0e40379c386474e72a04440b362b169d
parent7cac55174385bb278c4ae979bcf31f106072798e (diff)
WaE: various sillies flagged by MSVC++
-rw-r--r--cui/source/dialogs/about.cxx8
-rw-r--r--cui/source/inc/cuitabarea.hxx1
-rw-r--r--cui/source/options/optinet2.cxx28
-rw-r--r--filter/source/svg/svgreader.cxx2
-rw-r--r--sfx2/source/appl/appmisc.cxx40
5 files changed, 19 insertions, 60 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 0d77033cc2d7..b987b4af08ed 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -65,14 +65,6 @@ using namespace ::com::sun::star;
#define SPACE_OFFSET 5
#define SCROLL_TIMER 30
-/** loads the application logo as used in the about dialog and impress slideshow pause screen */
-Image SfxApplication::GetApplicationLogo()
-{
- BitmapEx aBitmap;
- Application::LoadBrandBitmap ("about", aBitmap);
- return Image( aBitmap );
-}
-
/* get good version information */
static String
GetBuildId()
diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx
index 1f76ce0ad609..7bb13e2ecbb7 100644
--- a/cui/source/inc/cuitabarea.hxx
+++ b/cui/source/inc/cuitabarea.hxx
@@ -657,6 +657,7 @@ public:
const ResId &aLoad, const ResId &aSave,
const ResId &aEmbed, const ResId &aTableName,
XPropertyListType t, XOutdevItemPool* mpXPool );
+ virtual ~SvxLoadSaveEmbed() {};
XPropertyListRef GetList();
void HideLoadSaveEmbed();
bool GetEmbed();
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index a8fe225571da..17a55efdd03a 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -315,15 +315,15 @@ void SvxProxyTabPage::ReadConfigData_Impl()
}
}
- catch(container::NoSuchElementException &e) {
+ catch(container::NoSuchElementException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: NoSuchElementException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &e) {
+ catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: WrappedTargetException caught" );
}
- catch(RuntimeException &e) {
+ catch(RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::ReadConfigData_Impl: RuntimeException caught" );
}
@@ -373,16 +373,16 @@ void SvxProxyTabPage::ReadConfigDefaults_Impl()
aNoProxyForED.SetText( aStringValue );
}
}
- catch(beans::UnknownPropertyException &e)
+ catch(beans::UnknownPropertyException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &e) {
+ catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
}
- catch(RuntimeException &e)
+ catch(RuntimeException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
}
@@ -407,16 +407,16 @@ void SvxProxyTabPage::RestoreConfigDefaults_Impl()
xChangesBatch->commitChanges();
}
- catch(beans::UnknownPropertyException &e)
+ catch(beans::UnknownPropertyException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: UnknownPropertyException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &e) {
+ catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: WrappedTargetException caught" );
}
- catch(RuntimeException &e)
+ catch(RuntimeException &)
{
OSL_TRACE( "SvxProxyTabPage::RestoreConfigDefaults_Impl: RuntimeException caught" );
}
@@ -512,23 +512,23 @@ sal_Bool SvxProxyTabPage::FillItemSet(SfxItemSet& )
xChangesBatch->commitChanges();
}
- catch(com::sun::star::lang::IllegalArgumentException &e) {
+ catch(com::sun::star::lang::IllegalArgumentException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: IllegalArgumentException caught" );
}
- catch(beans::UnknownPropertyException &e) {
+ catch(beans::UnknownPropertyException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: UnknownPropertyException caught" );
}
- catch(beans::PropertyVetoException &e) {
+ catch(beans::PropertyVetoException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: PropertyVetoException caught" );
}
- catch(com::sun::star::lang::WrappedTargetException &e) {
+ catch(com::sun::star::lang::WrappedTargetException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: WrappedTargetException caught" );
}
- catch(RuntimeException &e) {
+ catch(RuntimeException &) {
OSL_TRACE( "SvxProxyTabPage::FillItemSet: RuntimeException caught" );
}
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index 6b66c5081509..07f3a16b2bcf 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -2433,7 +2433,7 @@ struct ShapeRenderingVisitor
if( !maCurrState.maFontStyle.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("normal")) )
aFont.SetItalic(ITALIC_NORMAL); // TODO: discriminate
- if( !maCurrState.mnFontWeight != 400.0 )
+ if( maCurrState.mnFontWeight != 400.0 )
aFont.SetWeight(WEIGHT_BOLD); // TODO: discriminate
// extract basic transformations out of CTM
diff --git a/sfx2/source/appl/appmisc.cxx b/sfx2/source/appl/appmisc.cxx
index fffecd3f348e..ee0b8da9d9c1 100644
--- a/sfx2/source/appl/appmisc.cxx
+++ b/sfx2/source/appl/appmisc.cxx
@@ -309,43 +309,9 @@ static bool impl_loadBitmap(
/** loads the application logo as used in the about dialog and impress slideshow pause screen */
Image SfxApplication::GetApplicationLogo()
{
- Image aAppLogo;
-
- rtl::OUString aAbouts;
- bool bLoaded = false;
- sal_Int32 nIndex = 0;
- do
- {
- bLoaded = impl_loadBitmap(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program")),
- aAbouts.getToken( 0, ',', nIndex ), aAppLogo );
- }
- while ( !bLoaded && ( nIndex >= 0 ) );
-
- // fallback to "about.bmp"
- if ( !bLoaded )
- {
- bLoaded = impl_loadBitmap(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program/edition")),
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.png")), aAppLogo );
- if ( !bLoaded )
- bLoaded = impl_loadBitmap(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program/edition")),
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.bmp")), aAppLogo );
- }
-
- if ( !bLoaded )
- {
- bLoaded = impl_loadBitmap(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program")),
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.png")), aAppLogo );
- if ( !bLoaded )
- bLoaded = impl_loadBitmap(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program")),
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("about.bmp")), aAppLogo );
- }
-
- return aAppLogo;
+ BitmapEx aBitmap;
+ Application::LoadBrandBitmap ("about", aBitmap);
+ return Image( aBitmap );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */