瀏覽代碼

small corrections

Wolfgang Ortmann 10 年之前
父節點
當前提交
369405fbd1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/FileName.cpp

+ 3 - 0
src/FileName.cpp

@@ -11,6 +11,8 @@ using namespace std;
 
 void FileName::setPath(const std::string& n)
 {
+  // set parts of n to path
+  // includes filename!
   if (n.size() == 0)
     throw Exception("FileName::setPath", "empty pathname");
   absolute = n[0] == pathdel;
@@ -43,6 +45,7 @@ FileName::FileName(const std::string& n)
   // last path component is name
   if (path.size() > 0)
     {
+      // last part of path is (file-)name
       name = path.back();
       path.pop_back();