summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-31 11:10:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-31 11:13:08 +0000
commit0957067842dedb33dd6bff20f2d8df28242f692b (patch)
tree537e45a04f214e20bbcf778e4c0f2a055829ebde
parente13627acb1e7b60e56110cf9a471bf1ddf141607 (diff)
WaE: various new gcc 4.6.0 warnings
-rw-r--r--vbahelper/source/vbahelper/vbaapplicationbase.cxx5
-rw-r--r--xmloff/source/text/XMLSectionExport.cxx2
-rw-r--r--xmloff/source/text/XMLTextListBlockContext.cxx2
3 files changed, 0 insertions, 9 deletions
diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
index f9907cf4b255..1619ac8eff5e 100644
--- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx
+++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
@@ -359,15 +359,10 @@ uno::Any SAL_CALL VbaApplicationBase::Run( const ::rtl::OUString& MacroName, con
const uno::Any** pArg = aArgsPtrArray;
const uno::Any** pArgEnd = ( aArgsPtrArray + nArg );
- sal_Int32 nLastArgWithValue = 0;
sal_Int32 nArgProcessed = 0;
for ( ; pArg != pArgEnd; ++pArg, ++nArgProcessed )
- {
aArgs[ nArgProcessed ] = **pArg;
- if( (*pArg)->hasValue() )
- nLastArgWithValue = nArgProcessed;
- }
// resize array to position of last param with value
aArgs.realloc( nArgProcessed + 1 );
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx
index 48cae4f452a0..ffd869c85724 100644
--- a/xmloff/source/text/XMLSectionExport.cxx
+++ b/xmloff/source/text/XMLSectionExport.cxx
@@ -1241,7 +1241,6 @@ void XMLSectionExport::ExportIndexTemplateElement(
// tab position
sal_Bool bRightAligned = sal_False;
- sal_Bool bRightAlignedOK = sal_False;
// tab position
sal_Int32 nTabPosition = 0;
@@ -1315,7 +1314,6 @@ void XMLSectionExport::ExportIndexTemplateElement(
case TOK_TPARAM_TAB_RIGHT_ALIGNED:
bRightAligned =
*(sal_Bool *)rValues[i].Value.getValue();
- bRightAlignedOK = sal_True;
break;
case TOK_TPARAM_TAB_POSITION:
diff --git a/xmloff/source/text/XMLTextListBlockContext.cxx b/xmloff/source/text/XMLTextListBlockContext.cxx
index 2e6c2eca70c2..e3140a5e5d35 100644
--- a/xmloff/source/text/XMLTextListBlockContext.cxx
+++ b/xmloff/source/text/XMLTextListBlockContext.cxx
@@ -86,7 +86,6 @@ XMLTextListBlockContext::XMLTextListBlockContext(
// Inherit style name from parent list, as well as the flags whether
// numbering must be restarted and formats have to be created.
OUString sParentListStyleName;
- sal_Bool bParentRestartNumbering( sal_False );
if( mxParentListBlock.Is() )
{
XMLTextListBlockContext *pParent =
@@ -97,7 +96,6 @@ XMLTextListBlockContext::XMLTextListBlockContext(
mnLevel = pParent->GetLevel() + 1;
mbRestartNumbering = pParent->IsRestartNumbering() ||
bRestartNumberingAtSubList;
- bParentRestartNumbering = pParent->IsRestartNumbering();
mbSetDefaults = pParent->mbSetDefaults;
msListId = pParent->GetListId();
msContinueListId = pParent->GetContinueListId();