diff options
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 << "&"; |