summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/relationdesign/RTableConnection.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 12:43:36 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 12:43:36 +0000
commit276a0745533c22d6b8cda035881de0e731fa3dc4 (patch)
tree68aab0470fe69255a374167b0f283055f82f7323 /dbaccess/source/ui/relationdesign/RTableConnection.cxx
parent541b3d84cc74b2afe1dae4dc6558b991cf45d62d (diff)
INTEGRATION: CWS sb59 (1.5.32); FILE MERGED
2006/08/29 11:44:32 sb 1.5.32.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'dbaccess/source/ui/relationdesign/RTableConnection.cxx')
-rw-r--r--dbaccess/source/ui/relationdesign/RTableConnection.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/dbaccess/source/ui/relationdesign/RTableConnection.cxx b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
index cdbea835198e..00bb54ee9b31 100644
--- a/dbaccess/source/ui/relationdesign/RTableConnection.cxx
+++ b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: RTableConnection.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 07:27:38 $
+ * last change: $Author: obo $ $Date: 2006-10-12 13:43:36 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -103,10 +103,9 @@ void ORelationTableConnection::Draw( const Rectangle& rRect )
{
DBG_CHKTHIS(ORelationTableConnection,NULL);
OTableConnection::Draw( rRect );
- ORelationTableConnectionData* pData;
-
- if ((pData = (ORelationTableConnectionData*) GetData()) &&
- (pData->GetCardinality() == CARDINAL_UNDEFINED) )
+ ORelationTableConnectionData* pData =
+ static_cast< ORelationTableConnectionData* >(GetData());
+ if ( pData && (pData->GetCardinality() == CARDINAL_UNDEFINED) )
return;
//////////////////////////////////////////////////////////////////////