Commit 01fb6dd445c0bfd1382c773be1c78408387bbdb2
1 parent
2336d027
Convert explicitly unsigned int to int (will suppress clang warnings).
Showing
29 changed files
with
50 additions
and
50 deletions
include/GApplicationPars.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GApplicationPars.hpp - Application parameters * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2010-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2010-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -160,7 +160,7 @@ const GApplicationPar& GApplicationPars::operator[](const int& index) const |
| 160 | 160 | inline |
| 161 | 161 | int GApplicationPars::size(void) const |
| 162 | 162 | { |
| 163 | - return (m_pars.size()); | |
| 163 | + return (int)m_pars.size(); | |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | ... | ... |
include/GArf.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GArf.hpp - XSPEC Auxiliary Response File class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2013-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2013-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -134,7 +134,7 @@ const double& GArf::operator[](const int& index) const |
| 134 | 134 | inline |
| 135 | 135 | int GArf::size(void) const |
| 136 | 136 | { |
| 137 | - return (m_specresp.size()); | |
| 137 | + return (int)m_specresp.size(); | |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | ... | ... |
include/GEnergies.hpp
include/GFits.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GFits.hpp - FITS file class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2008-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2008-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -231,7 +231,7 @@ const GFitsHDU* GFits::operator[](const std::string& extname) const |
| 231 | 231 | inline |
| 232 | 232 | int GFits::size(void) const |
| 233 | 233 | { |
| 234 | - return (m_hdu.size()); | |
| 234 | + return (int)m_hdu.size(); | |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | ... | ... |
include/GFitsHeader.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GFitsHeader.hpp - FITS header cards container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2008-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2008-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -175,7 +175,7 @@ const GFitsHeaderCard& GFitsHeader::operator[](const std::string& keyname) const |
| 175 | 175 | inline |
| 176 | 176 | int GFitsHeader::size(void) const |
| 177 | 177 | { |
| 178 | - return (m_cards.size()); | |
| 178 | + return (int)m_cards.size(); | |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | ... | ... |
include/GModel.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GModel.hpp - Abstract virtual model base class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2009-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2009-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -212,7 +212,7 @@ const GModelPar& GModel::operator[](const int& index) const |
| 212 | 212 | inline |
| 213 | 213 | int GModel::size(void) const |
| 214 | 214 | { |
| 215 | - return (m_pars.size()); | |
| 215 | + return (int)m_pars.size(); | |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | ... | ... |
include/GModelSpatial.hpp
include/GModelSpectral.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GModelSpectral.hpp - Abstract spectral model base class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2009-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2009-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -155,7 +155,7 @@ const GModelPar& GModelSpectral::operator[](const int& index) const |
| 155 | 155 | inline |
| 156 | 156 | int GModelSpectral::size(void) const |
| 157 | 157 | { |
| 158 | - return (m_pars.size()); | |
| 158 | + return (int)m_pars.size(); | |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | #endif /* GMODELSPECTRAL_HPP */ | ... | ... |
include/GModelSpectralNodes.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GModelSpectralNodes.hpp - Spectral nodes model class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2012-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2012-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -201,7 +201,7 @@ std::string GModelSpectralNodes::type(void) const |
| 201 | 201 | inline |
| 202 | 202 | int GModelSpectralNodes::nodes(void) const |
| 203 | 203 | { |
| 204 | - return (m_energies.size()); | |
| 204 | + return (int)m_energies.size(); | |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | #endif /* GMODELSPECTRALNODES_HPP */ | ... | ... |
include/GModelTemporal.hpp
| ... | ... | @@ -134,7 +134,7 @@ const GModelPar& GModelTemporal::operator[](const int& index) const |
| 134 | 134 | inline |
| 135 | 135 | int GModelTemporal::size(void) const |
| 136 | 136 | { |
| 137 | - return (m_pars.size()); | |
| 137 | + return (int)m_pars.size(); | |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | #endif /* GMODELTEMPORAL_HPP */ | ... | ... |
include/GModels.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GModels.hpp - Model container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2009-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2009-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -248,7 +248,7 @@ const GModel* GModels::operator[](const int& index) const |
| 248 | 248 | inline |
| 249 | 249 | int GModels::size(void) const |
| 250 | 250 | { |
| 251 | - return (m_models.size()); | |
| 251 | + return (int)m_models.size(); | |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | ... | ... |
include/GNodeArray.hpp
include/GObservations.hpp
include/GOptimizerPars.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GOptimizerPars.hpp - Optimizer parameter container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2009-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2009-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -152,7 +152,7 @@ const GOptimizerPar* GOptimizerPars::operator[](const int& index) const |
| 152 | 152 | inline |
| 153 | 153 | int GOptimizerPars::size(void) const |
| 154 | 154 | { |
| 155 | - return (m_pars.size()); | |
| 155 | + return (int)m_pars.size(); | |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | ... | ... |
include/GPha.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GPha.hpp - XSPEC Pulse Height Analyzer class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2013-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2013-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -154,7 +154,7 @@ const double& GPha::operator[](const int& index) const |
| 154 | 154 | inline |
| 155 | 155 | int GPha::size(void) const |
| 156 | 156 | { |
| 157 | - return (m_counts.size()); | |
| 157 | + return (int)m_counts.size(); | |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | ... | ... |
include/GPhotons.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GPhotons.hpp - Photon container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2012-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2012-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -99,7 +99,7 @@ std::string GPhotons::classname(void) const |
| 99 | 99 | inline |
| 100 | 100 | int GPhotons::size(void) const |
| 101 | 101 | { |
| 102 | - return m_photons.size(); | |
| 102 | + return (int)m_photons.size(); | |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | ... | ... |
include/GSkyRegions.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GSkyRegions.hpp - Sky region container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2013-2014 by Pierrick Martin * | |
| 4 | + * copyright (C) 2013-2015 by Pierrick Martin * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -154,7 +154,7 @@ const GSkyRegion* GSkyRegions::operator[](const int& index) const |
| 154 | 154 | inline |
| 155 | 155 | int GSkyRegions::size(void) const |
| 156 | 156 | { |
| 157 | - return (m_regions.size()); | |
| 157 | + return (int)m_regions.size(); | |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | ... | ... |
include/GTestSuite.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GTestSuite.hpp - Abstract test suite base class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2012-2014 by Jean-Baptiste Cayrou * | |
| 4 | + * copyright (C) 2012-2015 by Jean-Baptiste Cayrou * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -129,7 +129,7 @@ protected: |
| 129 | 129 | inline |
| 130 | 130 | int GTestSuite::size(void) const |
| 131 | 131 | { |
| 132 | - return m_tests.size(); | |
| 132 | + return (int)m_tests.size(); | |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | ... | ... |
include/GTestSuites.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GTestSuites.hpp - Test suite container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2012-2014 by Jean-Baptiste Cayrou * | |
| 4 | + * copyright (C) 2012-2015 by Jean-Baptiste Cayrou * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -155,7 +155,7 @@ const GTestSuite* GTestSuites::operator[](const int& index) const |
| 155 | 155 | inline |
| 156 | 156 | int GTestSuites::size(void) const |
| 157 | 157 | { |
| 158 | - return m_testsuites.size(); | |
| 158 | + return (int)m_testsuites.size(); | |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | ... | ... |
include/GTimes.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GTimes.hpp - Time container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2012-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2012-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -99,7 +99,7 @@ std::string GTimes::classname(void) const |
| 99 | 99 | inline |
| 100 | 100 | int GTimes::size(void) const |
| 101 | 101 | { |
| 102 | - return m_times.size(); | |
| 102 | + return (int)m_times.size(); | |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | ... | ... |
include/GXmlNode.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GXmlNode.hpp - Abstract XML node base class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2010-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2010-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -125,7 +125,7 @@ protected: |
| 125 | 125 | inline |
| 126 | 126 | int GXmlNode::size(void) const |
| 127 | 127 | { |
| 128 | - return m_nodes.size(); | |
| 128 | + return (int)m_nodes.size(); | |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | ... | ... |
inst/cta/include/GCTAEventList.hpp
inst/cta/include/GCTAModelRadial.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GCTAModelRadial.hpp - Radial model abstract base class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2011-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2011-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -73,7 +73,7 @@ public: |
| 73 | 73 | virtual std::string print(const GChatter& chatter = NORMAL) const = 0; |
| 74 | 74 | |
| 75 | 75 | // Methods |
| 76 | - int size(void) const { return m_pars.size(); } | |
| 76 | + int size(void) const { return (int)m_pars.size(); } | |
| 77 | 77 | |
| 78 | 78 | protected: |
| 79 | 79 | // Protected methods | ... | ... |
inst/cta/include/GCTAModelRadialPolynom.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GCTAModelRadialPolynom.hpp - Radial Polynom CTA model class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2011-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2011-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -139,7 +139,7 @@ std::string GCTAModelRadialPolynom::type(void) const |
| 139 | 139 | inline |
| 140 | 140 | int GCTAModelRadialPolynom::size(void) const |
| 141 | 141 | { |
| 142 | - return (m_coeffs.size()); | |
| 142 | + return (int)m_coeffs.size(); | |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | #endif /* GCTAMODELRADIALPOLYNOM_HPP */ | ... | ... |
inst/cta/include/GCTAOnOffObservations.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GCTAOnOffObservations.hpp - CTA on-off observation container class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2013-2014 by Pierrick Martin * | |
| 4 | + * copyright (C) 2013-2015 by Pierrick Martin * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -158,7 +158,7 @@ const GCTAOnOffObservation* GCTAOnOffObservations::operator[](const int& index) |
| 158 | 158 | inline |
| 159 | 159 | int GCTAOnOffObservations::size(void) const |
| 160 | 160 | { |
| 161 | - return (m_obs.size()); | |
| 161 | + return (int)m_obs.size(); | |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | ... | ... |
inst/lat/include/GLATEventCube.hpp
inst/lat/include/GLATEventList.hpp
| ... | ... | @@ -115,7 +115,7 @@ std::string GLATEventList::classname(void) const |
| 115 | 115 | inline |
| 116 | 116 | int GLATEventList::size(void) const |
| 117 | 117 | { |
| 118 | - return m_events.size(); | |
| 118 | + return (int)m_events.size(); | |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | |
| ... | ... | @@ -127,7 +127,7 @@ int GLATEventList::size(void) const |
| 127 | 127 | inline |
| 128 | 128 | int GLATEventList::number(void) const |
| 129 | 129 | { |
| 130 | - return m_events.size(); | |
| 130 | + return (int)m_events.size(); | |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | ... | ... |
inst/lat/include/GLATResponse.hpp
inst/mwl/include/GMWLSpectrum.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * GMWLSpectrum.hpp - Multi-wavelength spectrum class * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2010-2014 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2010-2015 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -119,7 +119,7 @@ std::string GMWLSpectrum::classname(void) const |
| 119 | 119 | inline |
| 120 | 120 | int GMWLSpectrum::size(void) const |
| 121 | 121 | { |
| 122 | - return m_data.size(); | |
| 122 | + return (int)m_data.size(); | |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | ... | ... |