summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-10-28 15:03:16 +0000
committerRüdiger Timm <rt@openoffice.org>2008-10-28 15:03:16 +0000
commitada35cded048fd19660c62266a827a7c8e0f5054 (patch)
tree646dd727a416c0e6a0a7df6babe8a815a99da641 /svtools/source
parent216e0048e41f2109d624679686f473c7e886890d (diff)
CWS-TOOLING: integrate CWS cli002
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/config/helpopt.cxx4
-rw-r--r--svtools/source/config/miscopt.cxx4
-rw-r--r--svtools/source/config/syslocaleoptions.cxx6
-rw-r--r--svtools/source/config/undoopt.cxx2
-rw-r--r--svtools/source/control/valueacc.cxx2
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx2
-rw-r--r--svtools/source/items1/itempool.cxx18
-rw-r--r--svtools/source/numbers/zformat.cxx4
8 files changed, 30 insertions, 12 deletions
diff --git a/svtools/source/config/helpopt.cxx b/svtools/source/config/helpopt.cxx
index 29c2dcaf47c1..0ca09c176072 100644
--- a/svtools/source/config/helpopt.cxx
+++ b/svtools/source/config/helpopt.cxx
@@ -269,7 +269,9 @@ void SvtHelpOptions_Impl::Load(const uno::Sequence< ::rtl::OUString>& rProperty
}
}
else
- DBG_ERRORFILE( "Wrong Type!" );
+ {
+ DBG_ERRORFILE( "Wrong Type!" );
+ }
}
}
if ( IsHelpTips() != Help::IsQuickHelpEnabled() )
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index 03d7a78a2887..7a6dc4281da6 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -392,7 +392,9 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl()
if( seqValues[nProperty] >>= aSymbolsStyle )
SetSymbolsStyleName( aSymbolsStyle );
else
+ {
DBG_ERROR("Wrong type of \"Misc\\SymbolStyle\"!" );
+ }
m_bIsSymbolsStyleRO = seqRO[nProperty];
break;
}
@@ -492,7 +494,9 @@ void SvtMiscOptions_Impl::Load( const Sequence< OUString >& rPropertyNames )
if( seqValues[nProperty] >>= aSymbolsStyle )
SetSymbolsStyleName( aSymbolsStyle );
else
+ {
DBG_ERROR("Wrong type of \"Misc\\SymbolStyle\"!" );
+ }
}
break;
}
diff --git a/svtools/source/config/syslocaleoptions.cxx b/svtools/source/config/syslocaleoptions.cxx
index 18f116480cf0..a75c63e34af0 100644
--- a/svtools/source/config/syslocaleoptions.cxx
+++ b/svtools/source/config/syslocaleoptions.cxx
@@ -186,7 +186,9 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl()
if ( pValues[nProp] >>= aStr )
m_aLocaleString = aStr;
else
+ {
DBG_ERRORFILE( "Wrong property type!" );
+ }
m_bROLocale = pROStates[nProp];
}
break;
@@ -196,7 +198,9 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl()
if ( pValues[nProp] >>= aStr )
m_aCurrencyString = aStr;
else
+ {
DBG_ERRORFILE( "Wrong property type!" );
+ }
m_bROCurrency = pROStates[nProp];
}
break;
@@ -206,7 +210,9 @@ SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl()
if ( pValues[nProp] >>= bValue )
m_bDecimalSeparator = bValue;
else
+ {
DBG_ERRORFILE( "Wrong property type!" );
+ }
m_bRODecimalSeparator = pROStates[nProp];
}
break;
diff --git a/svtools/source/config/undoopt.cxx b/svtools/source/config/undoopt.cxx
index 18b4f486fbc0..a0c74ef84aac 100644
--- a/svtools/source/config/undoopt.cxx
+++ b/svtools/source/config/undoopt.cxx
@@ -140,7 +140,9 @@ void SvtUndoOptions_Impl::Load()
if ( pValues[nProp] >>= nTemp )
nUndoCount = nTemp;
else
+ {
DBG_ERROR( "Wrong Type!" );
+ }
break;
}
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index 352502cbcad7..5451d8ac5572 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -745,7 +745,9 @@ void ValueSetAcc::ThrowIfDisposed (void)
static_cast<uno::XWeak*>(this));
}
else
+ {
DBG_ASSERT (mpParent!=NULL, "ValueSetAcc not disposed but mpParent == NULL");
+ }
}
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index eda4fe3848d5..ddb34d5d4fd2 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -196,11 +196,13 @@ public:
m_aAliases[ pFields->ProgrammaticName ] = pFields->Alias;
}
else
+ {
DBG_ERROR ( ( ::rtl::OString("AssigmentTransientData::AssigmentTransientData: unknown programmatic name (")
+= ::rtl::OString(pFields->ProgrammaticName.getStr(), pFields->ProgrammaticName.getLength(), RTL_TEXTENCODING_ASCII_US)
+= ::rtl::OString(")!")
).getStr()
);
+ }
}
}
diff --git a/svtools/source/items1/itempool.cxx b/svtools/source/items1/itempool.cxx
index 3e4f3c00f178..71eaefcf12cb 100644
--- a/svtools/source/items1/itempool.cxx
+++ b/svtools/source/items1/itempool.cxx
@@ -673,20 +673,16 @@ void SfxItemPool::SetPoolDefaultItem(const SfxPoolItem &rItem)
else if ( pSecondary )
pSecondary->SetPoolDefaultItem(rItem);
else
+ {
SFX_ASSERT( 0, rItem.Which(), "unknown Which-Id - cannot set pool default" );
+ }
}
-// ----------------------------------------------------------------------
-
+/*
+ * Resets the default of the given <Which-Id> back to the static default.
+ * If a pool default exists it is removed.
+ */
void SfxItemPool::ResetPoolDefaultItem( USHORT nWhichId )
-
-/* [Beschreibung]
-
- Diese Methode setzt den Default f"ur die angegeben <Which-Id> zur"uck
- auf den statischen Default. Falls ein Pool-Default exisitiert, wird
- dieser gel"oscht.
-*/
-
{
DBG_CHKTHIS(SfxItemPool, 0);
if ( IsInRange(nWhichId) )
@@ -702,7 +698,9 @@ void SfxItemPool::ResetPoolDefaultItem( USHORT nWhichId )
else if ( pSecondary )
pSecondary->ResetPoolDefaultItem(nWhichId);
else
+ {
SFX_ASSERT( 0, nWhichId, "unknown Which-Id - cannot set pool default" );
+ }
}
// -----------------------------------------------------------------------
diff --git a/svtools/source/numbers/zformat.cxx b/svtools/source/numbers/zformat.cxx
index 7d78035317bd..80b3def0cdf9 100644
--- a/svtools/source/numbers/zformat.cxx
+++ b/svtools/source/numbers/zformat.cxx
@@ -3945,7 +3945,9 @@ DateFormat SvNumberformat::GetDateOrder() const
}
}
else
- DBG_ERROR( "SvNumberformat::GetDateOrder: no date" );
+ {
+ DBG_ERROR( "SvNumberformat::GetDateOrder: no date" );
+ }
return rLoc().getDateFormat();
}