Skip to content

Commit eb46a68

Browse files
[FIX] gsl-removal: fixed windows compiler errors and warnings
1 parent ebfdc35 commit eb46a68

16 files changed

Lines changed: 34 additions & 36 deletions

File tree

‎include/OpenMS/CONCEPT/UniqueIdGenerator.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ namespace OpenMS
6363

6464
/// Initializes random generator using the given value.
6565
static void
66-
setSeed(UInt seed);
66+
setSeed(UInt64 seed);
6767

6868
/// Get the seed
69-
static UInt
69+
static UInt64
7070
getSeed();
7171

7272
protected:

‎include/OpenMS/DATASTRUCTURES/Utils/MatrixUtils.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
#include <Eigen/Core>
1414

15-
#include <tr1/memory>
15+
#include <boost/shared_ptr.hpp>
1616

1717
namespace OpenMS
1818
{
1919
/** Matrix utility functions.
2020
*
2121
*/
2222

23-
typedef std::tr1::shared_ptr< const Eigen::MatrixXd > EigenMatrixXdPtr;
24-
typedef std::tr1::shared_ptr< Eigen::MatrixXd > MutableEigenMatrixXdPtr;
23+
typedef boost::shared_ptr< const Eigen::MatrixXd > EigenMatrixXdPtr;
24+
typedef boost::shared_ptr< Eigen::MatrixXd > MutableEigenMatrixXdPtr;
2525

2626
static EigenMatrixXdPtr
2727
convertOpenMSMatrix2EigenMatrixXd( const Matrix<double>& m )

‎include/OpenMS/MATH/STATISTICS/LinearRegression.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ namespace OpenMS
255255
// Compute the unweighted linear fit.
256256
// Get the intercept and the slope of the regression Y_hat=intercept_+slope_*X
257257
// and the value of Chi squared (sum( (y - evel(x))^2)
258-
bool pass = Wm5::HeightLineFit2<double>(points.size(), points.data(), slope_, intercept_);
258+
bool pass = Wm5::HeightLineFit2<double>(points.size(), &points.front(), slope_, intercept_);
259259
chi_squared_ = computeChiSquare(x_begin, x_end, y_begin, slope_, intercept_);
260260

261261
if (pass)

‎include/OpenMS/TRANSFORMATIONS/FEATUREFINDER/SUPERHIRN/ProcessData.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ namespace OpenMS
144144

145145
///////////////////////////////////////////////////////////////////////////////
146146
// inputs raw /centroided data into the object:
147-
void add_scan_raw_data(int, float, CentroidData *);
147+
void add_scan_raw_data(int, double, CentroidData *);
148148
// inputs raw data into the object:
149149
void add_scan_raw_data(std::vector<MSPeak>);
150150

‎include/OpenMS/TRANSFORMATIONS/FEATUREFINDER/TraceFitter.h‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ namespace OpenMS
217217
// LM always expects N>=p, cause Jacobian be rectangular M x N with M>=N
218218
if (data_count < num_params) throw Exception::UnableToFit(__FILE__, __LINE__, __PRETTY_FUNCTION__, "UnableToFit-FinalSet", "Skipping feature, we always expects N>=p");
219219

220+
220221
Eigen::LevenbergMarquardt<GenericFunctor> lmSolver (functor);
221222
lmSolver.parameters.maxfev = max_iterations_;
222223
Eigen::LevenbergMarquardtSpace::Status status = lmSolver.minimize(x_init);
@@ -232,11 +233,6 @@ namespace OpenMS
232233
getOptimizedParameters_(x_init);
233234
}
234235

235-
/** Test for the convergence of the sequence by comparing the last iteration step dx with the absolute error epsabs and relative error epsrel to the current position x */
236-
/// Absolute error
237-
DoubleReal epsilon_abs_;
238-
/// Relative error
239-
DoubleReal epsilon_rel_;
240236
/// Maximum number of iterations
241237
SignedSize max_iterations_;
242238
/// Whether to weight mass traces by theoretical intensity during the optimization

‎include/OpenMS/TRANSFORMATIONS/RAW2PEAK/TwoDOptimization.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ namespace OpenMS
179179
std::vector<DoubleReal> signal;
180180
};
181181

182-
class TwoDOptFunctor
182+
class OPENMS_DLLAPI TwoDOptFunctor
183183
{
184184
public:
185185
int inputs() const { return m_inputs; }

‎source/ANALYSIS/MAPMATCHING/TransformationModel.C‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace OpenMS
8585
{
8686
points.push_back(Wm5::Vector2d(data.at(i).first, data.at(i).second));
8787
}
88-
if(!Wm5::HeightLineFit2<double>(size, points.data(), slope_, intercept_))
88+
if(!Wm5::HeightLineFit2<double>(size, &points.front(), slope_, intercept_))
8989
throw std::runtime_error("could not fit");
9090
}
9191
}

‎source/APPLICATIONS/ToolHandler.C‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ namespace OpenMS
8484
tools_map["IDMerger"] = Internal::ToolDescription("IDMerger", "File Handling");
8585
tools_map["IDPosteriorErrorProbability"] = Internal::ToolDescription("IDPosteriorErrorProbability", "ID Processing");
8686
tools_map["IDRipper"] = Internal::ToolDescription("IDRipper", "File Handling");
87-
tools_map["IDRTCalibration"] = Internal::ToolDescription("IDRTCalibration", "ID Processing");
87+
tools_map["IMSDriftConverter"] = Internal::ToolDescription("IMSDriftConverter", "IMS");
88+
tools_map["IsobaricAnalyzer"] = Internal::ToolDescription("IsobaricAnalyzer", "Quantitation");
8889
tools_map["IsobaricAnalyzer"] = Internal::ToolDescription("IsobaricAnalyzer", "Quantitation");
8990
tools_map["ITRAQAnalyzer"] = Internal::ToolDescription("ITRAQAnalyzer", "Quantitation");
9091
tools_map["InclusionExclusionListCreator"] = Internal::ToolDescription("InclusionExclusionListCreator", "Targeted Experiments");

‎source/CONCEPT/UniqueIdGenerator.C‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ namespace OpenMS
5151
return (*instance.dist_)(*instance.rng_);
5252
}
5353

54-
UInt
54+
UInt64
5555
UniqueIdGenerator::getSeed()
5656
{
5757
return getInstance_().seed_;
5858
}
5959

6060
void
61-
UniqueIdGenerator::setSeed(UInt seed)
61+
UniqueIdGenerator::setSeed(UInt64 seed)
6262
{
6363
UniqueIdGenerator& instance = getInstance_();
6464
instance.seed_ = seed;

‎source/FILTERING/CALIBRATION/TOFCalibration.C‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ namespace OpenMS
7777
continue;
7878
}
7979

80-
double chisq;
81-
8280
// matrix containing the observations
8381
std::vector<double> x;
8482
// vector containing the expected masses

0 commit comments

Comments
 (0)