From bb7875edd4004087ee4bffdb24924da925d57f3e Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 22 Jun 2013 16:15:30 +0100 Subject: [PATCH] Fix a warning spotted by Emilian. --- simgear/io/DAVMultiStatus.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/simgear/io/DAVMultiStatus.cxx b/simgear/io/DAVMultiStatus.cxx index 54c23870..5270fca6 100644 --- a/simgear/io/DAVMultiStatus.cxx +++ b/simgear/io/DAVMultiStatus.cxx @@ -31,9 +31,6 @@ #include "simgear/misc/strutils.hxx" #include "simgear/structure/exception.hxx" -using std::cout; -using std::cerr; -using std::endl; using std::string; using namespace simgear; @@ -113,13 +110,6 @@ void DAVCollection::addChild(DAVResource *res) assert(res->container() == NULL); assert(std::find(_contents.begin(), _contents.end(), res) == _contents.end()); - - if (!strutils::starts_with(res->url(), _url)) { - std::cerr << "us: " << _url << std::endl; - std::cerr << "child:" << res->url() << std::endl; - - } - assert(strutils::starts_with(res->url(), _url)); assert(childWithUrl(res->url()) == NULL); @@ -276,7 +266,7 @@ public: string tagN(const unsigned int n) const { - int sz = tagStack.size(); + size_t sz = tagStack.size(); if (n >= sz) { return string(); } -- 2.39.5