diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-10-08 06:26:32 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-10-08 06:26:32 +0000 |
commit | 7d0ce5e8825fe585a88e0d69f2ac16fca2d3d9d9 (patch) | |
tree | 5868a0639090df8f1c17957119c5b12dbc92f702 /dbaccess/source/ui/querydesign/ConnectionLine.cxx | |
parent | 8b7b3df954f28d113283b9671e6c10fcc7b181dc (diff) |
#92786# refcount implemented for connectiondata and sqlexception catched
Diffstat (limited to 'dbaccess/source/ui/querydesign/ConnectionLine.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/ConnectionLine.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/querydesign/ConnectionLine.cxx b/dbaccess/source/ui/querydesign/ConnectionLine.cxx index c1e074b4647f..6ff0c7a895f9 100644 --- a/dbaccess/source/ui/querydesign/ConnectionLine.cxx +++ b/dbaccess/source/ui/querydesign/ConnectionLine.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ConnectionLine.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: oj $ $Date: 2001-08-09 09:59:51 $ + * last change: $Author: oj $ $Date: 2001-10-08 07:26:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -92,7 +92,7 @@ const long HIT_SENSITIVE_RADIUS = 5; //======================================================================== DBG_NAME(OConnectionLine); //------------------------------------------------------------------------ -OConnectionLine::OConnectionLine( OTableConnection* _pConn, OConnectionLineData* _pLineData ) +OConnectionLine::OConnectionLine( OTableConnection* _pConn, OConnectionLineDataRef _pLineData ) : m_pTabConn( _pConn ) ,m_pData( _pLineData ) ,m_pSourceEntry( NULL ) @@ -446,7 +446,7 @@ void OConnectionLine::Draw( OutputDevice* pOutDev ) //------------------------------------------------------------------------ BOOL OConnectionLine::IsValid() { - return m_pData && m_pData->IsValid(); + return m_pData.isValid() && m_pData->IsValid(); } //------------------------------------------------------------------------ double dist_Euklid(const Point &p1, const Point& p2,const Point& pM, Point& q) |