[cig-commits] r13504 - cs/cigma/trunk/src
luis at geodynamics.org
luis at geodynamics.org
Tue Dec 9 18:12:47 PST 2008
Author: luis
Date: 2008-12-09 18:12:46 -0800 (Tue, 09 Dec 2008)
New Revision: 13504
Modified:
cs/cigma/trunk/src/DataPath.cpp
cs/cigma/trunk/src/DataPath.h
Log:
Made two DataPath methods const (exists & empty)
Modified: cs/cigma/trunk/src/DataPath.cpp
===================================================================
--- cs/cigma/trunk/src/DataPath.cpp 2008-12-10 02:12:45 UTC (rev 13503)
+++ cs/cigma/trunk/src/DataPath.cpp 2008-12-10 02:12:46 UTC (rev 13504)
@@ -75,12 +75,12 @@
// ----------------------------------------------------------------------------
-bool DataPath::exists()
+bool DataPath::exists() const
{
return boost::filesystem::exists(fname);
}
-bool DataPath::empty()
+bool DataPath::empty() const
{
return (fname == "") && (dname == "");
}
Modified: cs/cigma/trunk/src/DataPath.h
===================================================================
--- cs/cigma/trunk/src/DataPath.h 2008-12-10 02:12:45 UTC (rev 13503)
+++ cs/cigma/trunk/src/DataPath.h 2008-12-10 02:12:46 UTC (rev 13504)
@@ -14,8 +14,8 @@
DataPath& operator=(const DataPath& dp);
~DataPath();
- bool exists();
- bool empty();
+ bool exists() const;
+ bool empty() const;
std::string extension() const;
std::string filename() const;
More information about the CIG-COMMITS
mailing list