Skip to content

Commit

Permalink
removed inline keyword from implicitly inlined functions
Browse files Browse the repository at this point in the history
  • Loading branch information
elidwa committed Oct 24, 2023
1 parent 5bbfaa6 commit bb62c52
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions packages/core/TimeLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ class TimeLib
static void heartbeat (void);
static void parsenistfile (void);

static inline int64_t GPS_TO_SYS (int64_t gpsnow) { return (((gpsnow) + 315964800000LL) * 1000); } // IN: milliseconds, OUT: microseconds
static inline int64_t SYS_TO_GPS (int64_t sysnow) { return (((sysnow) - 315964800000000LL) / 1000); } // IN: microseconds, OUT: milliseconds
static inline int64_t NTP_TO_SYS (int64_t ntpnow) { return (((ntpnow) - 2208988800LL)); } // IN: seconds, OUT: seconds
static inline double GPS_TO_SYS_EX (double gps_secs) { return (((gps_secs) + 315964800.0)); } // IN: seconds, OUT: seconds
static int64_t GPS_TO_SYS (int64_t gpsnow) { return (((gpsnow) + 315964800000LL) * 1000); } // IN: milliseconds, OUT: microseconds
static int64_t SYS_TO_GPS (int64_t sysnow) { return (((sysnow) - 315964800000000LL) / 1000); } // IN: microseconds, OUT: milliseconds
static int64_t NTP_TO_SYS (int64_t ntpnow) { return (((ntpnow) - 2208988800LL)); } // IN: seconds, OUT: seconds
static double GPS_TO_SYS_EX (double gps_secs) { return (((gps_secs) + 315964800.0)); } // IN: seconds, OUT: seconds
};

#endif /* __time_lib__ */
4 changes: 2 additions & 2 deletions plugins/icesat2/plugin/Atl08Dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ class Atl08Dispatch: public DispatchObject
* Inline Methods
*--------------------------------------------------------------------*/

static inline bool isVegetation (Atl03Reader::photon_t* ph)
static bool isVegetation (Atl03Reader::photon_t* ph)
{
return (ph->atl08_class == Icesat2Parms::ATL08_CANOPY || ph->atl08_class == Icesat2Parms::ATL08_TOP_OF_CANOPY);
}

static inline bool isGround (Atl03Reader::photon_t* ph)
static bool isGround (Atl03Reader::photon_t* ph)
{
return (ph->atl08_class == Icesat2Parms::ATL08_GROUND);
}
Expand Down
10 changes: 5 additions & 5 deletions plugins/landsat/plugin/LandsatHlsRaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ class LandsatHlsRaster: public GeoIndexedRaster

static bool validateBand (band_type_t type, const char* bandName);

static inline bool isValidL8Band (const char* bandName) {return validateBand(LANDSAT8, bandName);}
static inline bool isValidS2Band (const char* bandName) {return validateBand(SENTINEL2,bandName);}
static inline bool isValidAlgoBand (const char* bandName) {return validateBand(ALGOBAND, bandName);}
static inline bool isValidAlgoName (const char* bandName) {return validateBand(ALGONAME, bandName);}
static bool isValidL8Band (const char* bandName) {return validateBand(LANDSAT8, bandName);}
static bool isValidS2Band (const char* bandName) {return validateBand(SENTINEL2,bandName);}
static bool isValidAlgoBand (const char* bandName) {return validateBand(ALGOBAND, bandName);}
static bool isValidAlgoName (const char* bandName) {return validateBand(ALGONAME, bandName);}

/*--------------------------------------------------------------------
* Data
*--------------------------------------------------------------------*/

std::string filePath;
std::string indexFile;
Dictionary<bool> bandsDict;
Expand Down

0 comments on commit bb62c52

Please sign in to comment.