Tag: cws_src680_warningfixes02 User: sb Date: 2006/06/30 04:44:38 Modified: dba/connectivity/source/drivers/adabas/BTables.cxx dba/connectivity/source/drivers/dbase/DTable.cxx dba/connectivity/source/drivers/dbase/dindexnode.cxx dba/connectivity/source/drivers/hsqldb/HCatalog.cxx dba/connectivity/source/drivers/hsqldb/HTables.cxx dba/connectivity/source/drivers/mozab/bootstrap/makefile.mk dba/connectivity/source/drivers/mozab/mozillasrc/makefile.mk dba/connectivity/source/drivers/mysql/YCatalog.cxx dba/connectivity/source/drivers/mysql/YTables.cxx
Log: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box. File Changes: Directory: /dba/connectivity/source/drivers/adabas/ =================================================== File [changed]: BTables.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/adabas/BTables.cxx?r1=1.32&r2=1.32.8.1 Delta lines: +4 -4 ------------------- --- BTables.cxx 20 Jun 2006 01:11:03 -0000 1.32 +++ BTables.cxx 30 Jun 2006 11:44:33 -0000 1.32.8.1 @@ -4,9 +4,9 @@ * * $RCSfile: BTables.cxx,v $ * - * $Revision: 1.32 $ + * $Revision: 1.32.8.1 $ * - * last change: $Author: hr $ $Date: 2006/06/20 01:11:03 $ + * last change: $Author: sb $ $Date: 2006/06/30 11:44:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -218,7 +218,7 @@ Reference<XPropertySet> xProp(xObject,UNO_QUERY); sal_Bool bIsView; - if(bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == ::rtl::OUString::createFromAscii("VIEW"))) // here we have a view + if((bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == ::rtl::OUString::createFromAscii("VIEW")))) // here we have a view aSql += ::rtl::OUString::createFromAscii("VIEW "); else aSql += ::rtl::OUString::createFromAscii("TABLE "); Directory: /dba/connectivity/source/drivers/dbase/ ================================================== File [changed]: DTable.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/dbase/DTable.cxx?r1=1.94&r2=1.94.10.1 Delta lines: +5 -5 ------------------- --- DTable.cxx 20 Jun 2006 01:21:12 -0000 1.94 +++ DTable.cxx 30 Jun 2006 11:44:33 -0000 1.94.10.1 @@ -4,9 +4,9 @@ * * $RCSfile: DTable.cxx,v $ * - * $Revision: 1.94 $ + * $Revision: 1.94.10.1 $ * - * last change: $Author: hr $ $Date: 2006/06/20 01:21:12 $ + * last change: $Author: sb $ $Date: 2006/06/30 11:44:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1158,9 +1158,9 @@ INetURLObject aURL; aURL.SetURL(_sUrl); - BOOL bDropped = FALSE; + BOOL bDropped = ::utl::UCBContentHelper::Kill(aURL.GetMainURL(INetURLObject::NO_DECODE)); - if(bDropped = ::utl::UCBContentHelper::Kill(aURL.GetMainURL(INetURLObject::NO_DECODE))) + if(bDropped) { if (_bHasMemoFields) { // delete the memo fields File [changed]: dindexnode.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/dbase/dindexnode.cxx?r1=1.18&r2=1.18.10.1 Delta lines: +4 -4 ------------------- --- dindexnode.cxx 20 Jun 2006 01:21:48 -0000 1.18 +++ dindexnode.cxx 30 Jun 2006 11:44:33 -0000 1.18.10.1 @@ -4,9 +4,9 @@ * * $RCSfile: dindexnode.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.18.10.1 $ * - * last change: $Author: hr $ $Date: 2006/06/20 01:21:48 $ + * last change: $Author: sb $ $Date: 2006/06/30 11:44:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -747,7 +747,7 @@ rStream >> aChild; } -union +union NodeData { double aDbl; char aData[128]; Directory: /dba/connectivity/source/drivers/hsqldb/ =================================================== File [changed]: HCatalog.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/hsqldb/HCatalog.cxx?r1=1.4&r2=1.4.128.1 Delta lines: +4 -4 ------------------- --- HCatalog.cxx 8 Sep 2005 06:02:34 -0000 1.4 +++ HCatalog.cxx 30 Jun 2006 11:44:34 -0000 1.4.128.1 @@ -4,9 +4,9 @@ * * $RCSfile: HCatalog.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.4.128.1 $ * - * last change: $Author: rt $ $Date: 2005/09/08 06:02:34 $ + * last change: $Author: sb $ $Date: 2006/06/30 11:44:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -112,7 +112,7 @@ Reference<XRow> xRow(xRes,UNO_QUERY); while ( xRow.is() && xRes->next() ) { - if ( bSupportsViews = xRow->getString(1).equalsIgnoreAsciiCase(aTypes[0]) ) + if ( (bSupportsViews = xRow->getString(1).equalsIgnoreAsciiCase(aTypes[0])) ) { break; } File [changed]: HTables.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/hsqldb/HTables.cxx?r1=1.5&r2=1.5.8.1 Delta lines: +4 -4 ------------------- --- HTables.cxx 20 Jun 2006 01:30:42 -0000 1.5 +++ HTables.cxx 30 Jun 2006 11:44:34 -0000 1.5.8.1 @@ -4,9 +4,9 @@ * * $RCSfile: HTables.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.5.8.1 $ * - * last change: $Author: hr $ $Date: 2006/06/20 01:30:42 $ + * last change: $Author: sb $ $Date: 2006/06/30 11:44:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -184,7 +184,7 @@ Reference<XPropertySet> xProp(xObject,UNO_QUERY); sal_Bool bIsView; - if(bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == ::rtl::OUString::createFromAscii("VIEW"))) // here we have a view + if((bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == ::rtl::OUString::createFromAscii("VIEW")))) // here we have a view aSql += ::rtl::OUString::createFromAscii("VIEW "); else aSql += ::rtl::OUString::createFromAscii("TABLE "); Directory: /dba/connectivity/source/drivers/mozab/bootstrap/ ============================================================ File [changed]: makefile.mk Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mozab/bootstrap/makefile.mk?r1=1.6&r2=1.6.10.1 Delta lines: +4 -4 ------------------- --- makefile.mk 20 Jun 2006 01:49:11 -0000 1.6 +++ makefile.mk 30 Jun 2006 11:44:34 -0000 1.6.10.1 @@ -4,9 +4,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.6 $ +# $Revision: 1.6.10.1 $ # -# last change: $Author: hr $ $Date: 2006/06/20 01:49:11 $ +# last change: $Author: sb $ $Date: 2006/06/30 11:44:34 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -133,7 +133,7 @@ CDEFS+= -DOSTYPE=\"Linux2.2.14-5\" -DOJI CFLAGSCXX += \ - -fno-rtti -Wall -Wconversion -Wpointer-arith \ + -fno-rtti -Wconversion -Wpointer-arith \ -Wcast-align -Woverloaded-virtual -Wsynth \ -Wno-long-long -pthread CDEFS += -DTRACING Directory: /dba/connectivity/source/drivers/mozab/mozillasrc/ ============================================================= File [changed]: makefile.mk Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mozab/mozillasrc/makefile.mk?r1=1.18&r2=1.18.10.1 Delta lines: +4 -4 ------------------- --- makefile.mk 20 Jun 2006 01:52:40 -0000 1.18 +++ makefile.mk 30 Jun 2006 11:44:35 -0000 1.18.10.1 @@ -4,9 +4,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.18 $ +# $Revision: 1.18.10.1 $ # -# last change: $Author: hr $ $Date: 2006/06/20 01:52:40 $ +# last change: $Author: sb $ $Date: 2006/06/30 11:44:35 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -131,7 +131,7 @@ CDEFS+= -DOSTYPE=\"Linux2.2.14-5\" -DOJI CFLAGSCXX += \ - -fno-rtti -Wall -Wconversion -Wpointer-arith \ + -fno-rtti -Wconversion -Wpointer-arith \ -Wcast-align -Woverloaded-virtual -Wsynth \ -Wno-long-long -pthread CDEFS += -DTRACING Directory: /dba/connectivity/source/drivers/mysql/ ================================================== File [changed]: YCatalog.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysql/YCatalog.cxx?r1=1.4&r2=1.4.128.1 Delta lines: +4 -4 ------------------- --- YCatalog.cxx 8 Sep 2005 06:31:16 -0000 1.4 +++ YCatalog.cxx 30 Jun 2006 11:44:35 -0000 1.4.128.1 @@ -4,9 +4,9 @@ * * $RCSfile: YCatalog.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.4.128.1 $ * - * last change: $Author: rt $ $Date: 2005/09/08 06:31:16 $ + * last change: $Author: sb $ $Date: 2006/06/30 11:44:35 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -114,7 +114,7 @@ Reference<XRow> xRow(xRes,UNO_QUERY); while ( xRow.is() && xRes->next() ) { - if ( bSupportsViews = xRow->getString(1).equalsIgnoreAsciiCase(aTypes[0]) ) + if ( (bSupportsViews = xRow->getString(1).equalsIgnoreAsciiCase(aTypes[0])) ) { break; } File [changed]: YTables.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysql/YTables.cxx?r1=1.8&r2=1.8.8.1 Delta lines: +5 -5 ------------------- --- YTables.cxx 20 Jun 2006 01:53:30 -0000 1.8 +++ YTables.cxx 30 Jun 2006 11:44:35 -0000 1.8.8.1 @@ -4,9 +4,9 @@ * * $RCSfile: YTables.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.8.8.1 $ * - * last change: $Author: hr $ $Date: 2006/06/20 01:53:30 $ + * last change: $Author: sb $ $Date: 2006/06/30 11:44:35 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -200,8 +200,8 @@ ::rtl::OUString aSql = ::rtl::OUString::createFromAscii("DROP "); Reference<XPropertySet> xProp(xObject,UNO_QUERY); - sal_Bool bIsView; - if(bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == ::rtl::OUString::createFromAscii("VIEW"))) // here we have a view + sal_Bool bIsView = xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == ::rtl::OUString::createFromAscii("VIEW"); + if(bIsView) // here we have a view aSql += ::rtl::OUString::createFromAscii("VIEW "); else aSql += ::rtl::OUString::createFromAscii("TABLE "); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
