From d3b4a36447eceb57a420d69e48ac9c7234a9e85e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 18 Jun 2002 09:09:37 +0000 Subject: [PATCH] Added the length argument to a std::string argument, under Linux it compiled with the default value npos, under Windows it broke the build, add the npost excpilicity should get round this difference in implementation. --- src/osgDB/Registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index 306df3b76..59bf4bfd9 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -1184,7 +1184,7 @@ void Registry::convertStringPathIntoFilePathList(const std::string& paths,FilePa start = end+1; } - filepath.push_back(std::string(paths,start)); + filepath.push_back(std::string(paths,start,std::string::npos)); } }