summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mysql
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-07-19 14:53:58 +0000
committerKurt Zenker <kz@openoffice.org>2006-07-19 14:53:58 +0000
commitb90101220d65b234063d3a89d65e3b72c0bcbab4 (patch)
treefc1466125e89a77a2e32d44ed7335d400aa0b9e8 /connectivity/source/drivers/mysql
parent5556154ae5a37a612326735bf4eaf0861ac07a41 (diff)
INTEGRATION: CWS warningfixes02 (1.8.8); FILE MERGED
2006/06/30 11:44:35 sb 1.8.8.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
Diffstat (limited to 'connectivity/source/drivers/mysql')
-rw-r--r--connectivity/source/drivers/mysql/YTables.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/mysql/YTables.cxx b/connectivity/source/drivers/mysql/YTables.cxx
index 2344c3501842..90b559676415 100644
--- a/connectivity/source/drivers/mysql/YTables.cxx
+++ b/connectivity/source/drivers/mysql/YTables.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: YTables.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2006-07-10 14:30:53 $
+ * last change: $Author: kz $ $Date: 2006-07-19 15:53:58 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -197,8 +197,8 @@ void OTables::dropObject(sal_Int32 _nPos,const ::rtl::OUString _sElementName)
::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 ");