Tag: cws_src680_oj14 User: oj Date: 2006/12/19 06:14:03 Modified: dba/connectivity/source/parse/sqlnode.cxx
Log: correct use of PropSetInfo File Changes: Directory: /dba/connectivity/source/parse/ ========================================== File [changed]: sqlnode.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/parse/sqlnode.cxx?r1=1.46&r2=1.46.4.1 Delta lines: +6 -5 ------------------- --- sqlnode.cxx 13 Dec 2006 16:25:11 -0000 1.46 +++ sqlnode.cxx 19 Dec 2006 14:14:00 -0000 1.46.4.1 @@ -4,9 +4,9 @@ * * $RCSfile: sqlnode.cxx,v $ * - * $Revision: 1.46 $ + * $Revision: 1.46.4.1 $ * - * last change: $Author: kz $ $Date: 2006/12/13 16:25:11 $ + * last change: $Author: oj $ $Date: 2006/12/19 14:14:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1237,7 +1237,8 @@ // retrieve the fields name // #75243# use the RealName of the column if there is any otherwise the name which could be the alias // of the field - if (m_xField->getPropertySetInfo()->hasPropertyByName(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME))) + Reference< XPropertySetInfo> xInfo = m_xField->getPropertySetInfo(); + if ( xInfo->hasPropertyByName(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME))) m_xField->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME)) >>= aString; else m_xField->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)) >>= aString; @@ -1245,7 +1246,7 @@ m_sFieldName = aString; // get the field format key - if (m_xField->getPropertySetInfo()->hasPropertyByName(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FORMATKEY))) + if ( xInfo->hasPropertyByName(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FORMATKEY))) m_xField->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_FORMATKEY)) >>= m_nFormatKey; else m_nFormatKey = 0; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
