incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r1172125 - /incubator/ooo/trunk/main/connectivity/source/commontools/FValue.cxx
Date Sat, 17 Sep 2011 22:42:00 GMT
Author: mst
Date: Sat Sep 17 22:41:59 2011
New Revision: 1172125

URL: http://svn.apache.org/viewvc?rev=1172125&view=rev
Log:
fs34c: #i117666# check first if value is null

# HG changeset patch
# User Ocke Janssen [oj] <Ocke.Janssen@oracle.com>
# Date 1301982481 -7200
# Node ID f83826db1f0250fa86b741773613e3caaa25990b
# Parent  a9158b47276ffd484296b630f9400403f1781fcd

Modified:
    incubator/ooo/trunk/main/connectivity/source/commontools/FValue.cxx

Modified: incubator/ooo/trunk/main/connectivity/source/commontools/FValue.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/connectivity/source/commontools/FValue.cxx?rev=1172125&r1=1172124&r2=1172125&view=diff
==============================================================================
--- incubator/ooo/trunk/main/connectivity/source/commontools/FValue.cxx (original)
+++ incubator/ooo/trunk/main/connectivity/source/commontools/FValue.cxx Sat Sep 17 22:41:59
2011
@@ -787,6 +787,12 @@ sal_Bool operator==(const DateTime& _rLH
 
 bool ORowSetValue::operator==(const ORowSetValue& _rRH) const
 {
+	if ( m_bNull != _rRH.isNull() )
+        return false;
+
+	if(m_bNull && _rRH.isNull())
+		return true;
+
 	if ( m_eTypeKind != _rRH.m_eTypeKind )
     {
         switch(m_eTypeKind)
@@ -809,10 +815,6 @@ bool ORowSetValue::operator==(const ORow
             }
         return false;
     }
-    if ( m_bNull != _rRH.isNull() )
-            return false;
-	if(m_bNull && _rRH.isNull())
-		return true;
 
 	bool bRet = false;
 	OSL_ENSURE(!m_bNull,"SHould not be null!");



Mime
View raw message