summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2002-09-24 12:20:38 +0000
committerKai Sommerfeld <kso@openoffice.org>2002-09-24 12:20:38 +0000
commit4abcc8422b5a74d3c949aac6424c689fe9a53fb9 (patch)
treed83e5b3b6bd93c792f3ac38f774db6169d78c59d /ucb
parentfcf8adb82fb421cd7cc4fb6b98a821f1234cd465 (diff)
#i7636# - std::auto_ptr -> rtl::Reference (fits better)
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/DAVAuthListener.hxx9
-rw-r--r--ucb/source/ucp/webdav/DAVRequestEnvironment.hxx18
2 files changed, 17 insertions, 10 deletions
diff --git a/ucb/source/ucp/webdav/DAVAuthListener.hxx b/ucb/source/ucp/webdav/DAVAuthListener.hxx
index a248e3d38116..aef0ed7845f7 100644
--- a/ucb/source/ucp/webdav/DAVAuthListener.hxx
+++ b/ucb/source/ucp/webdav/DAVAuthListener.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DAVAuthListener.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: kso $ $Date: 2002-09-18 12:46:13 $
+ * last change: $Author: kso $ $Date: 2002-09-24 13:20:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -61,6 +61,9 @@
#ifndef _DAVAUTHLISTENER_HXX_
#define _DAVAUTHLISTENER_HXX_
+#ifndef _SALHELPER_SIMPLEREFERENCEOBJECT_HXX_
+#include <salhelper/simplereferenceobject.hxx>
+#endif
#ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx>
#endif
@@ -76,7 +79,7 @@
namespace webdav_ucp
{
-class DAVAuthListener
+class DAVAuthListener : public salhelper::SimpleReferenceObject
{
public:
virtual int authenticate(
diff --git a/ucb/source/ucp/webdav/DAVRequestEnvironment.hxx b/ucb/source/ucp/webdav/DAVRequestEnvironment.hxx
index bca357d1af11..08a937fe6233 100644
--- a/ucb/source/ucp/webdav/DAVRequestEnvironment.hxx
+++ b/ucb/source/ucp/webdav/DAVRequestEnvironment.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DAVRequestEnvironment.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: kso $ $Date: 2002-09-18 12:46:13 $
+ * last change: $Author: kso $ $Date: 2002-09-24 13:20:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,6 +63,10 @@
#include <memory>
+#ifndef _RTL_REF_HXX_
+#include <rtl/ref.hxx>
+#endif
+
#ifndef _DAVAUTHLISTENER_HXX_
#include "DAVAuthListener.hxx"
#endif
@@ -72,12 +76,12 @@ namespace webdav_ucp
struct DAVRequestEnvironment
{
- std::auto_ptr< DAVAuthListener > m_xAuthListener;
-// std::auto_ptr< DAVStatusListener > m_xStatusListener;
-// std::auto_ptr< DAVProgressListener > m_xStatusListener;
+ rtl::Reference< DAVAuthListener > m_xAuthListener;
+// rtl::Reference< DAVStatusListener > m_xStatusListener;
+// rtl::Reference< DAVProgressListener > m_xStatusListener;
- DAVRequestEnvironment( DAVAuthListener * pListener )
- : m_xAuthListener( pListener ) {}
+ DAVRequestEnvironment( const rtl::Reference< DAVAuthListener > & xListener )
+ : m_xAuthListener( xListener ) {}
DAVRequestEnvironment() {}
};