Skip to content
Snippets Groups Projects
Commit 5f1495dc authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Move "using namespace" statements to source files

parent bc791e27
No related branches found
No related tags found
1 merge request!8Mnt/conda
...@@ -10,10 +10,9 @@ ...@@ -10,10 +10,9 @@
#include "histogram.h" #include "histogram.h"
using namespace std; using namespace std;
using namespace NEWMAT;
#ifndef NO_NAMESPACE
namespace MISCMATHS { namespace MISCMATHS {
#endif
float Histogram::getPercentile(float perc) float Histogram::getPercentile(float perc)
{ {
...@@ -267,11 +266,6 @@ namespace MISCMATHS { ...@@ -267,11 +266,6 @@ namespace MISCMATHS {
} }
} }
} }
#ifndef NO_NAMESPACE
}
#endif
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include "kernel.h" #include "kernel.h"
#include "miscmaths.h" #include "miscmaths.h"
using namespace NEWMAT;
namespace MISCMATHS { namespace MISCMATHS {
set<kernelstorage*, kernelstorage::comparer> kernel::existingkernels; set<kernelstorage*, kernelstorage::comparer> kernel::existingkernels;
......
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
#include "miscmaths.h" #include "miscmaths.h"
#include "minimize.h" #include "minimize.h"
#define WANT_STREAM
#define WANT_MATH
using namespace NEWMAT; using namespace NEWMAT;
using namespace std; using namespace std;
/////////////////////////////////////////////////////// ///////////////////////////////////////////////////////
......
...@@ -15,8 +15,11 @@ ...@@ -15,8 +15,11 @@
#include "miscprob.h" #include "miscprob.h"
#include "stdlib.h" #include "stdlib.h"
#include "armawrap/newmatio.h" #include "armawrap/newmatio.h"
#include "NewNifti/NewNifti.h"
using namespace std; using namespace std;
using namespace NEWMAT;
using namespace NiftiIO;
namespace MISCMATHS { namespace MISCMATHS {
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#include "optimise.h" #include "optimise.h"
#include "miscmaths.h" #include "miscmaths.h"
using namespace NEWMAT;
using namespace std;
namespace MISCMATHS { namespace MISCMATHS {
// The following lines are ignored by the current SGI compiler // The following lines are ignored by the current SGI compiler
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "rungekutta.h" #include "rungekutta.h"
using namespace std; using namespace std;
using namespace NEWMAT;
namespace MISCMATHS { namespace MISCMATHS {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment