diff options
| author | Vincent Richard <[email protected]> | 2005-07-13 00:28:02 +0200 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-07-13 00:28:02 +0200 |
| commit | 681297e10b666e13cc463f6fbb16236f36c3266c (patch) | |
| tree | 5d2392e2283232ed3475cd9c69e22897b03e8a97 /src/utility | |
| parent | Added contentHandler::extractRaw(). (diff) | |
| download | vmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip | |
Reference counting and smart pointers.
Diffstat (limited to 'src/utility')
| -rw-r--r-- | src/utility/path.cpp | 1 | ||||
| -rw-r--r-- | src/utility/stream.cpp | 7 | ||||
| -rw-r--r-- | src/utility/url.cpp | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/utility/path.cpp b/src/utility/path.cpp index 5e6162ab..5dadefe1 100644 --- a/src/utility/path.cpp +++ b/src/utility/path.cpp @@ -38,6 +38,7 @@ path::path(const component& c) path::path(const path& p) + : object() { m_list.resize(p.m_list.size()); std::copy(p.m_list.begin(), p.m_list.end(), m_list.begin()); diff --git a/src/utility/stream.cpp b/src/utility/stream.cpp index 94be1447..799c6c32 100644 --- a/src/utility/stream.cpp +++ b/src/utility/stream.cpp @@ -284,6 +284,13 @@ inputStreamPointerAdapter::inputStreamPointerAdapter(std::istream* is, const boo } +inputStreamPointerAdapter::inputStreamPointerAdapter(const inputStreamPointerAdapter&) + : inputStream(), m_stream(NULL), m_own(false) +{ + // Not copiable +} + + inputStreamPointerAdapter::~inputStreamPointerAdapter() { if (m_own) diff --git a/src/utility/url.cpp b/src/utility/url.cpp index cf991b86..a2d4e32b 100644 --- a/src/utility/url.cpp +++ b/src/utility/url.cpp @@ -122,7 +122,7 @@ const string url::build() const oss << urlUtils::encode(m_path); } - const std::vector <const propertySet::property*> params + const std::vector <ref <const propertySet::property> > params = m_params.getPropertyList(); if (!params.empty()) @@ -134,7 +134,7 @@ const string url::build() const for (unsigned int i = 0 ; i < params.size() ; ++i) { - const propertySet::property* prop = params[i]; + const ref <const propertySet::property> prop = params[i]; if (i != 0) oss << "&"; |
