summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/uscxml/URL.cpp1
-rw-r--r--src/uscxml/concurrency/EventBase.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/uscxml/URL.cpp b/src/uscxml/URL.cpp
index 624f6c1..79a3f65 100644
--- a/src/uscxml/URL.cpp
+++ b/src/uscxml/URL.cpp
@@ -354,6 +354,7 @@ const std::string URLImpl::file() const {
if (_pathComponents.size() > 0 && !boost::ends_with(path(), "/")) {
return _pathComponents[_pathComponents.size() - 1];
}
+ return "";
}
const void URLImpl::download(bool blocking) {
diff --git a/src/uscxml/concurrency/EventBase.cpp b/src/uscxml/concurrency/EventBase.cpp
index b5c1308..ec25181 100644
--- a/src/uscxml/concurrency/EventBase.cpp
+++ b/src/uscxml/concurrency/EventBase.cpp
@@ -27,7 +27,7 @@ tthread::recursive_mutex EventBase::_instanceMutex;
boost::shared_ptr<EventBase> EventBase::get(const std::string& name) {
tthread::lock_guard<tthread::recursive_mutex> lock(_instanceMutex);
- std::map<std::string, boost::weak_ptr<EventBase> >::const_iterator instIter = _eventBases.begin();
+ std::map<std::string, boost::weak_ptr<EventBase> >::iterator instIter = _eventBases.begin();
while(instIter != _eventBases.end()) {
if (!instIter->second.lock()) {
_eventBases.erase(instIter++);