Author: kuemmel
Date: Sun Jan 16 10:53:56 2011
New Revision: 37227
URL: http://www.lyx.org/trac/changeset/37227

Log:
return empty EdgePath() on error

Modified:
   lyx-devel/trunk/src/Graph.cpp

Modified: lyx-devel/trunk/src/Graph.cpp
==============================================================================
--- lyx-devel/trunk/src/Graph.cpp       Sun Jan 16 05:02:59 2011        (r37226)
+++ lyx-devel/trunk/src/Graph.cpp       Sun Jan 16 10:53:56 2011        (r37227)
@@ -167,12 +167,11 @@
 {
        Mutex::Locker lock(&mutex_);
 
-       static const EdgePath path;
        if (from == to)
-               return path;
+               return EdgePath();
 
        if (to < 0 || !bfs_init(from))
-               return path;
+               return EdgePath();
 
        clearPaths();
        while (!Q_.empty()) {
@@ -201,7 +200,7 @@
                }
        }
        // failure
-       return path;
+       return EdgePath();
 }
 
 

Reply via email to