From 0abbd65247f1527153ca8692d453bca72052a023 Mon Sep 17 00:00:00 2001 From: Ocke Janssen Date: Mon, 14 May 2001 10:42:44 +0000 Subject: #86528# lower size need --- connectivity/source/drivers/dbase/DCode.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'connectivity/source/drivers/dbase/DCode.cxx') diff --git a/connectivity/source/drivers/dbase/DCode.cxx b/connectivity/source/drivers/dbase/DCode.cxx index 40e172353668..544c0817990b 100644 --- a/connectivity/source/drivers/dbase/DCode.cxx +++ b/connectivity/source/drivers/dbase/DCode.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DCode.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: oj $ $Date: 2001-05-07 10:46:53 $ + * last change: $Author: oj $ $Date: 2001-05-14 11:39:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,10 +70,6 @@ #ifndef _CONNECTIVITY_DBASE_INDEXITER_HXX_ #include "dbase/DIndexIter.hxx" #endif -#define CONNECTIVITY_PROPERTY_NAME_SPACE dbase -#ifndef _CONNECTIVITY_PROPERTYIDS_HXX_ -#include "propertyids.hxx" -#endif using namespace connectivity::dbase; @@ -92,6 +88,7 @@ OOperandAttr* OFILEAnalyzer::createOperandAttr(sal_Int32 _nPos, { return new OFILEOperandAttr(_nPos,_xCol,_xIndexes); } + //------------------------------------------------------------------ OFILEOperandAttr::OFILEOperandAttr(sal_uInt16 _nPos, const Reference< XPropertySet>& _xColumn, @@ -114,15 +111,15 @@ OFILEOperandAttr::OFILEOperandAttr(sal_uInt16 _nPos, { Reference xColsSup(xIndex,UNO_QUERY); Reference xNameAccess = xColsSup->getColumns(); - _xColumn->getPropertyValue(PROPERTY_NAME) >>= sName; + _xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)) >>= sName; if(xNameAccess->hasByName(sName)) { m_xIndex = xIndex; break; } - else if(xColInfo->hasPropertyByName(PROPERTY_REALNAME)) + else if(xColInfo->hasPropertyByName(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME))) { - _xColumn->getPropertyValue(PROPERTY_REALNAME) >>= sName; + _xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME)) >>= sName; if(xNameAccess->hasByName(sName)) { m_xIndex = xIndex; -- cgit