Browse Source

dtoolutil: Use string compare instead of strcmp in filename.I

rdb 1 year ago
parent
commit
abf0b38705
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/dtoolutil/filename.I

+ 1 - 1
dtool/src/dtoolutil/filename.I

@@ -594,7 +594,7 @@ operator < (const std::string &other) const {
  */
  */
 INLINE int Filename::
 INLINE int Filename::
 compare_to(const Filename &other) const {
 compare_to(const Filename &other) const {
-  return strcmp(_filename.c_str(), other._filename.c_str());
+  return _filename.compare(other._filename);
 }
 }