[Libreoffice-commits] .: sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Feb 3 06:22:58 PST 2011
sw/source/filter/ww8/ww8scan.cxx | 12 ------------
sw/source/ui/dbui/dbmgr.cxx | 6 ------
2 files changed, 18 deletions(-)
New commits:
commit 4ad751946b5e8376a3af83de36392f3e13ee57fa
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Feb 3 13:16:12 2011 +0000
gcc 4.6.0 various warnings
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 46be0de..74fe57a 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -4262,20 +4262,8 @@ bool WW8PLCFx_Book::MapName(String& rName)
bool bFound = false;
USHORT i = 0;
- WW8_CP nStartAkt, nEndAkt;
do
{
- void* p;
- USHORT nEndIdx;
-
- if( pBook[0]->GetData( i, nStartAkt, p ) && p )
- nEndIdx = SVBT16ToShort( *((SVBT16*)p) );
- else
- {
- OSL_ENSURE( !this, "Bookmark-EndIdx nicht lesbar" );
- nEndIdx = i;
- }
- nEndAkt = pBook[1]->GetPos( nEndIdx );
if (COMPARE_EQUAL == rName.CompareIgnoreCaseToAscii(aBookNames[i]))
{
rName = aBookNames[i];
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx
index b7a69e2..c831416 100644
--- a/sw/source/ui/dbui/dbmgr.cxx
+++ b/sw/source/ui/dbui/dbmgr.cxx
@@ -2521,8 +2521,6 @@ void SwNewDBMgr::InsertText(SwWrtShell& rSh,
rtl::OUString sDataSource, sDataTableOrQuery;
uno::Reference<XResultSet> xResSet;
Sequence<Any> aSelection;
- BOOL bHasSelectionProperty = FALSE;
- sal_Int32 nSelectionPos = 0;
sal_Int16 nCmdType = CommandType::TABLE;
const PropertyValue* pValues = rProperties.getConstArray();
uno::Reference< XConnection> xConnection;
@@ -2535,11 +2533,7 @@ void SwNewDBMgr::InsertText(SwWrtShell& rSh,
else if(pValues[nPos].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(cCursor)))
pValues[nPos].Value >>= xResSet;
else if(pValues[nPos].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(cSelection)))
- {
- bHasSelectionProperty = TRUE;
- nSelectionPos = nPos;
pValues[nPos].Value >>= aSelection;
- }
else if(pValues[nPos].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(cCommandType)))
pValues[nPos].Value >>= nCmdType;
else if(pValues[nPos].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(cActiveConnection)))
More information about the Libreoffice-commits
mailing list