Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Nov 26, 2023
1 parent 90c5ecc commit c275032
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
2 changes: 0 additions & 2 deletions source/include/lccd/DBFileHandler.hh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
//#include "lccd.h"
#include "ConditionsHandlerBase.hh"

using namespace lcio ;

namespace lccd {


Expand Down
2 changes: 0 additions & 2 deletions source/include/lccd/DataFileHandler.hh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
//#include "lccd.h"
#include "ConditionsHandlerBase.hh"

using namespace lcio ;

namespace lccd {

/** Implementation of ConditionsHandlerBase that handles conditions data
Expand Down
2 changes: 0 additions & 2 deletions source/include/lccd/SimpleFileHandler.hh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
//#include "lccd.h"
#include "ConditionsHandlerBase.hh"

using namespace lcio ;

namespace lccd {

/** Implementation of ConditionsHandlerBase that reads the conditions data
Expand Down
14 changes: 7 additions & 7 deletions source/include/lccd_exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ namespace lccd{
LCCDException(){ /*no_op*/ ; }

public:
virtual ~LCCDException() throw() { /*no_op*/; }
virtual ~LCCDException() noexcept { /*no_op*/; }

LCCDException( const std::string& text ) {
message = "lccd::Exception: " + text ;
}

virtual const char* what() const throw() { return message.c_str() ; }
virtual const char* what() const noexcept { return message.c_str() ; }
};

/**DatabaseException used for errors accessing the database data.
Expand All @@ -42,7 +42,7 @@ namespace lccd{
protected:
DatabaseException() { /*no_op*/ ; }
public:
virtual ~DatabaseException() throw() { /*no_op*/; }
virtual ~DatabaseException() noexcept { /*no_op*/; }

DatabaseException( std::string text ){
message = "lccd::DatabaseException: " + text ;
Expand All @@ -56,7 +56,7 @@ namespace lccd{
class DataNotAvailableException : public LCCDException{

public:
virtual ~DataNotAvailableException() throw() { /*no_op*/; }
virtual ~DataNotAvailableException() noexcept { /*no_op*/; }

DataNotAvailableException( std::string text ) {
message = "lccd::DataNotAvailableException: " + text ;
Expand All @@ -70,7 +70,7 @@ namespace lccd{
class ReadOnlyException : public LCCDException{

public:
virtual ~ReadOnlyException() throw() { /*no_op*/; }
virtual ~ReadOnlyException() noexcept { /*no_op*/; }

ReadOnlyException( std::string text ){
message = "lccd::ReadOnlyException: " + text ;
Expand All @@ -84,7 +84,7 @@ namespace lccd{
class InconsistencyException : public LCCDException{

public:
virtual ~InconsistencyException() throw() { /*no_op*/; }
virtual ~InconsistencyException() noexcept { /*no_op*/; }

InconsistencyException( std::string text ) {
message = "lccd::InconsistencyException: " + text ;
Expand All @@ -98,7 +98,7 @@ namespace lccd{
class MemberNotImplementedException : public LCCDException{

public:
virtual ~MemberNotImplementedException() throw() { /*no_op*/; }
virtual ~MemberNotImplementedException() noexcept { /*no_op*/; }

MemberNotImplementedException( std::string text ) {
message = "lccd::MemberNotImplementedException: " + text ;
Expand Down
4 changes: 1 addition & 3 deletions source/test/CalibrationConstant.hh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#define OFFSET_INDEX 0
#define GAIN_INDEX 1

using namespace lcio ;

class CalibrationConstant ;

/** Example for a simple calibration class based on the LCFixedObject template.
Expand All @@ -23,7 +21,7 @@ class CalibrationConstant ;
* for copying it to some local structure (Decorator pattern).<br>
*
*/
class CalibrationConstant : public LCFixedObject<NINT,NFLOAT,NDOUBLE> {
class CalibrationConstant : public lcio::LCFixedObject<NINT,NFLOAT,NDOUBLE> {

public:

Expand Down
2 changes: 0 additions & 2 deletions source/test/readdatafile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ int main(int argc, char** argv ) {
lcReader->open( fileName ) ;

LCEvent* evt ;
int nEvents = 0 ;

//----------- the event loop -----------
while( (evt = lcReader->readNextEvent()) != 0 ) {
Expand All @@ -58,7 +57,6 @@ int main(int argc, char** argv ) {

LCTOOLS::dumpEvent( evt ) ;

nEvents ++ ;
}
// -------- end of event loop -----------

Expand Down

0 comments on commit c275032

Please sign in to comment.