summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/ado/ACollection.hxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-04-12 11:33:30 +0000
committerOcke Janssen <oj@openoffice.org>2001-04-12 11:33:30 +0000
commit48550de50b341ba38665ebc7a9131aec3d1a18c5 (patch)
tree7ab5235ec41c5d0f67df4b3224ac8339a5c24458 /connectivity/source/inc/ado/ACollection.hxx
parentb9eaaea1ee7dace1129f26710926b52e24d04c41 (diff)
correct access to bstr and variant
Diffstat (limited to 'connectivity/source/inc/ado/ACollection.hxx')
-rw-r--r--connectivity/source/inc/ado/ACollection.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/connectivity/source/inc/ado/ACollection.hxx b/connectivity/source/inc/ado/ACollection.hxx
index 1b8bcb0044..2e9e6aef9c 100644
--- a/connectivity/source/inc/ado/ACollection.hxx
+++ b/connectivity/source/inc/ado/ACollection.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ACollection.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:14:24 $
+ * last change: $Author: oj $ $Date: 2001-04-12 12:32:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -220,10 +220,9 @@ namespace connectivity
SimT* pIdx = NULL;
m_pCollection->get_Item(aVar,&pIdx);
pIdx->AddRef();
- BSTR aBSTR;
- pIdx->get_Name(&aBSTR);
- (*pStringArray) = (sal_Unicode*)aBSTR;
- SysFreeString(aBSTR);
+ _bstr_t sBSTR;
+ pIdx->get_Name(&sBSTR);
+ (*pStringArray) = (sal_Unicode*)sBSTR;
pIdx->Release();
++pStringArray;
}