From e401fa74614988ee69ea317b6f795563470053ef Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 5 Mar 2010 15:17:26 +0000 Subject: [PATCH] Replaced find_first_of with find. --- src/osgDB/FileNameUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgDB/FileNameUtils.cpp b/src/osgDB/FileNameUtils.cpp index 41e6e8779..04b2c8005 100644 --- a/src/osgDB/FileNameUtils.cpp +++ b/src/osgDB/FileNameUtils.cpp @@ -186,7 +186,7 @@ bool osgDB::equalCaseInsensitive(const std::string& lhs,const char* rhs) bool osgDB::containsServerAddress(const std::string& filename) { // need to check for :// - std::string::size_type pos(filename.find_first_of("://")); + std::string::size_type pos(filename.find("://")); if (pos == std::string::npos) return false; std::string proto(filename.substr(0, pos)); @@ -196,7 +196,7 @@ bool osgDB::containsServerAddress(const std::string& filename) std::string osgDB::getServerProtocol(const std::string& filename) { - std::string::size_type pos(filename.find_first_of("://")); + std::string::size_type pos(filename.find("://")); if (pos != std::string::npos) return filename.substr(0,pos); @@ -205,7 +205,7 @@ std::string osgDB::getServerProtocol(const std::string& filename) std::string osgDB::getServerAddress(const std::string& filename) { - std::string::size_type pos(filename.find_first_of("://")); + std::string::size_type pos(filename.find("://")); if (pos != std::string::npos) {