Merge pull request #65 from kisli/tholdawa-master

C++11 std::shared_ptr fixes.
This commit is contained in:
Vincent Richard 2014-01-16 10:32:15 -08:00
commit 599be47555
3 changed files with 9 additions and 9 deletions

View File

@ -815,7 +815,7 @@ CHECK_CXX_SOURCE_COMPILES(
#include <memory> #include <memory>
struct A { int foo; }; struct A { int foo; };
int main() { int main() {
std::shared_ptr <A> a = std::make_shared <A>(a); std::shared_ptr <A> a = std::make_shared <A>();
return 0; return 0;
} }
" "

View File

@ -42,7 +42,7 @@ contentDispositionField::contentDispositionField(contentDispositionField&)
bool contentDispositionField::hasCreationDate() const bool contentDispositionField::hasCreationDate() const
{ {
return findParameter("creation-date"); return hasParameter("creation-date");
} }
@ -65,7 +65,7 @@ void contentDispositionField::setCreationDate(const datetime& creationDate)
bool contentDispositionField::hasModificationDate() const bool contentDispositionField::hasModificationDate() const
{ {
return findParameter("modification-date"); return hasParameter("modification-date");
} }
@ -88,7 +88,7 @@ void contentDispositionField::setModificationDate(const datetime& modificationDa
bool contentDispositionField::hasReadDate() const bool contentDispositionField::hasReadDate() const
{ {
return findParameter("read-date"); return hasParameter("read-date");
} }
@ -111,7 +111,7 @@ void contentDispositionField::setReadDate(const datetime& readDate)
bool contentDispositionField::hasFilename() const bool contentDispositionField::hasFilename() const
{ {
return findParameter("filename"); return hasParameter("filename");
} }
@ -134,7 +134,7 @@ void contentDispositionField::setFilename(const word& filename)
bool contentDispositionField::hasSize() const bool contentDispositionField::hasSize() const
{ {
return findParameter("size"); return hasParameter("size");
} }

View File

@ -42,7 +42,7 @@ contentTypeField::contentTypeField(contentTypeField&)
bool contentTypeField::hasBoundary() const bool contentTypeField::hasBoundary() const
{ {
return findParameter("boundary"); return hasParameter("boundary");
} }
@ -65,7 +65,7 @@ void contentTypeField::setBoundary(const string& boundary)
bool contentTypeField::hasCharset() const bool contentTypeField::hasCharset() const
{ {
return findParameter("charset"); return hasParameter("charset");
} }
@ -88,7 +88,7 @@ void contentTypeField::setCharset(const charset& ch)
bool contentTypeField::hasReportType() const bool contentTypeField::hasReportType() const
{ {
return findParameter("report-type"); return hasParameter("report-type");
} }