Revision: 44701
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44701&view=rev
Author:   davidloman
Date:     2011-05-27 14:37:20 +0000 (Fri, 27 May 2011)

Log Message:
-----------
Verbage change from 'path' to 'gPath' for clarity.

Modified Paths:
--------------
    geomcore/trunk/include/BrlcadDb.h
    geomcore/trunk/src/GS/BrlcadDb.cxx

Modified: geomcore/trunk/include/BrlcadDb.h
===================================================================
--- geomcore/trunk/include/BrlcadDb.h   2011-05-26 20:38:10 UTC (rev 44700)
+++ geomcore/trunk/include/BrlcadDb.h   2011-05-27 14:37:20 UTC (rev 44701)
@@ -45,7 +45,7 @@
   /**
    * Opens the DB, checks if the provided 'path' is valid or not, then closes 
the DB.
    */
-  const bool isValidPath(const std::string path);
+  const bool isValidPath(const std::string gPath);
 
   /**
    * Using provided database 'path' to a db object,

Modified: geomcore/trunk/src/GS/BrlcadDb.cxx
===================================================================
--- geomcore/trunk/src/GS/BrlcadDb.cxx  2011-05-26 20:38:10 UTC (rev 44700)
+++ geomcore/trunk/src/GS/BrlcadDb.cxx  2011-05-27 14:37:20 UTC (rev 44701)
@@ -128,7 +128,7 @@
   return retVal;
 }
 const int
-BrlcadDb::_list(const std::string path, std::list<std::string>* items)
+BrlcadDb::_list(const std::string gPath, std::list<std::string>* items)
 {
   struct directory *dp;
   struct db_full_path dfp;
@@ -137,7 +137,7 @@
   int itemsAdded = 0;
 
   /* If we are getting TOPS of the file... */
-  if ((path.length() == 0 || path == "/")) {
+  if ((gPath.length() == 0 || gPath == "/")) {
     for (int i = 0; i < RT_DBNHASH; i++)
       for (dp = dbip->dbi_Head[i]; dp != RT_DIR_NULL; dp = dp->d_forw)
         if (dp->d_nref == 0 && !(dp->d_flags & RT_DIR_HIDDEN) && (dp->d_addr 
!= RT_DIR_PHONY_ADDR)) {
@@ -149,7 +149,7 @@
   /* If not TOPS, then look it up! */
 
   /* Check to see if we have a valid path, or just a objectName */
-  std::string objName = StringUtils::getLastStepOfPath(path);
+  std::string objName = StringUtils::getLastStepOfPath(gPath);
 
   dp = db_lookup(this->dbip, objName.c_str(), 0);
   if (dp == RT_DIR_NULL)  return G_PATH_NOT_VALID;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to