summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/ado/AView.cxx
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
commite1022adee0a2708964c75094d17e7da406fccff0 (patch)
tree2d6c495509b59312f6876acf1cb15258c3b96d59 /connectivity/source/drivers/ado/AView.cxx
parented7319d1ea41a09797c285ff19f99ce30ae0ef2f (diff)
correct access to bstr and variant
Diffstat (limited to 'connectivity/source/drivers/ado/AView.cxx')
-rw-r--r--connectivity/source/drivers/ado/AView.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/connectivity/source/drivers/ado/AView.cxx b/connectivity/source/drivers/ado/AView.cxx
index 7e7baa34b33b..f1f0fec9a8d3 100644
--- a/connectivity/source/drivers/ado/AView.cxx
+++ b/connectivity/source/drivers/ado/AView.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AView.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: oj $ $Date: 2000-11-03 14:09:51 $
+ * last change: $Author: oj $ $Date: 2001-04-12 12:31:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,7 @@
#ifndef _COMPHELPER_SEQUENCE_HXX_
#include <comphelper/sequence.hxx>
#endif
+
// -------------------------------------------------------------------------
using namespace connectivity::ado;
using namespace com::sun::star::uno;
@@ -195,14 +196,15 @@ void OAdoView::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
if(!aVar.isNull() && !aVar.isEmpty())
{
ADOCommand* pCom = (ADOCommand*)aVar.getIDispatch();
- BSTR aBSTR; pCom->get_CommandText(&aBSTR);
- ::rtl::OUString sRetStr(aBSTR);
- SysFreeString(aBSTR);
- rValue <<= sRetStr;
+ OLEString aBSTR;
+ pCom->get_CommandText(&aBSTR);
+ rValue <<= (::rtl::OUString) aBSTR;
}
}
break;
}
}
}
+// -----------------------------------------------------------------------------
+