Skip to content
Snippets Groups Projects
Commit e8667853 authored by nkindlon's avatar nkindlon
Browse files

added changes to stop CLANG compiler warnings.

parent 39fffc97
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ namespace Internal { ...@@ -29,7 +29,7 @@ namespace Internal {
//! \endcond //! \endcond
// BamAlignment data structure // BamAlignment data structure
struct API_EXPORT BamAlignment { class API_EXPORT BamAlignment {
// constructors & destructor // constructors & destructor
public: public:
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
namespace BamTools { namespace BamTools {
struct API_EXPORT SamHeader { class API_EXPORT SamHeader {
public:
// ctor & dtor // ctor & dtor
SamHeader(const std::string& headerText = ""); SamHeader(const std::string& headerText = "");
SamHeader(const SamHeader& other); SamHeader(const SamHeader& other);
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
namespace BamTools { namespace BamTools {
namespace Internal { namespace Internal {
struct TcpSocketEngine { class TcpSocketEngine {
// ctors & dtor // ctors & dtor
public: public:
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
namespace BamTools { namespace BamTools {
class SamHeader; class SamHeader;
class SamReadGroup; struct SamReadGroup;
class SamSequence; struct SamSequence;
namespace Internal { namespace Internal {
......
...@@ -23,9 +23,25 @@ public: ...@@ -23,9 +23,25 @@ public:
BamRecord(); BamRecord();
virtual const BamRecord &operator=(const BamRecord &); virtual const BamRecord &operator=(const BamRecord &);
// This using statement is only being added to supress warning from the CLANG compiler regarding
// hidden overriden methods. Though it makes the base class methods available, developers should
// not actually call them on a BamRecord object.
using Bed6Interval::initFromFile;
bool initFromFile(FileReader *); bool initFromFile(FileReader *);
virtual bool initFromFile(BamFileReader *); virtual bool initFromFile(BamFileReader *);
virtual void clear(); virtual void clear();
// As above, this using statement is only being added to supress warning from the CLANG compiler
// regarding hidden overriden methods. Though it makes the base class methods available, developers
// should not actually call them on a BamRecord object.
using Bed6Interval::print;
virtual void print(QuickString &outBuf, int start, int end, RecordKeyList *keyList) const; virtual void print(QuickString &outBuf, int start, int end, RecordKeyList *keyList) const;
virtual void print(QuickString &outBuf, RecordKeyList *keyList) const; virtual void print(QuickString &outBuf, RecordKeyList *keyList) const;
virtual void print(QuickString &outBuf, const QuickString & start, const QuickString & end, RecordKeyList *keyList) const; virtual void print(QuickString &outBuf, const QuickString & start, const QuickString & end, RecordKeyList *keyList) const;
......
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