Changeset 11172 for OpenSceneGraph/trunk/src/osgText/Font.cpp
- Timestamp:
- 03/05/10 16:46:17 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgText/Font.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgText/Font.cpp
r10959 r11172 84 84 85 85 // Not found, return empty string 86 osg::notify(osg:: WARN)<<"Warning: font file \""<<str<<"\" not found."<<std::endl;86 osg::notify(osg::INFO)<<"Warning: font file \""<<str<<"\" not found."<<std::endl; 87 87 return std::string(); 88 88 } … … 90 90 osgText::Font* osgText::readFontFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions) 91 91 { 92 if (filename =="") return 0;92 if (filename.empty()) return 0; 93 93 94 94 std::string foundFile = findFontFile(filename); 95 if (foundFile.empty()) return 0; 95 if (foundFile.empty()) 96 foundFile = filename; 96 97 97 98 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(s_FontFileMutex); … … 150 151 osg::ref_ptr<Font> osgText::readRefFontFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions) 151 152 { 152 if (filename =="") return 0;153 if (filename.empty()) return 0; 153 154 154 155 std::string foundFile = findFontFile(filename); 155 if (foundFile.empty()) return 0; 156 if (foundFile.empty()) 157 foundFile = filename; 156 158 157 159 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(s_FontFileMutex); … … 253 255 { 254 256 if (_implementation.valid()) return _implementation->getFileName(); 255 return "";257 return std::string(); 256 258 } 257 259
