Skip to content

v0.2.54..v0.2.55 changeset IntegerProgrammingSolver.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/optimizer/IntegerProgrammingSolver.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/optimizer/IntegerProgrammingSolver.cpp
index a5a2dc7..40f426e 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/optimizer/IntegerProgrammingSolver.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/optimizer/IntegerProgrammingSolver.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #include "IntegerProgrammingSolver.h"
 
@@ -115,11 +115,11 @@ void IntegerProgrammingSolver::solveBranchAndCut()
   try
   {
     //  Register a new SIGABRT signal handler to ignore it for this call only
-    SignalCatcher::getInstance()->registerHandler(SIGABRT, SIG_IGN);
+    SignalCatcher::getInstance().registerHandler(SIGABRT, SIG_IGN);
     //  This function can intermittently throw an exception that is heretofore unhandled
     result = glp_intopt(_lp, &iocp);
     //  Unregister the SIGABRT signal handler and use the hoot default
-    SignalCatcher::getInstance()->unregisterHandler(SIGABRT);
+    SignalCatcher::getInstance().unregisterHandler(SIGABRT);
   }
   catch (...)
   {
@@ -162,11 +162,11 @@ void IntegerProgrammingSolver::solveSimplex()
   try
   {
     //  Register a new SIGABRT signal handler to ignore it for this call only
-    SignalCatcher::getInstance()->registerHandler(SIGABRT, SIG_IGN);
+    SignalCatcher::getInstance().registerHandler(SIGABRT, SIG_IGN);
     //  This function can potentially throw an exception that is heretofore unhandled
     result = glp_simplex(_lp, &smcp);
     //  Unregister the SIGABRT signal handler and use the hoot default
-    SignalCatcher::getInstance()->unregisterHandler(SIGABRT);
+    SignalCatcher::getInstance().unregisterHandler(SIGABRT);
   }
   catch (...)
   {
Clone this wiki locally