Fixed warnings

This commit is contained in:
Robert Osfield
2010-04-13 09:42:53 +00:00
parent ccd34b375b
commit 51924431cd
2 changed files with 3 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ class observer_ptr : public Observer
observer_ptr(): _ptr(0L) {}
observer_ptr(T* t): _ptr(t) { if (_ptr) _ptr->addObserver(this); }
observer_ptr(const observer_ptr& rp)
observer_ptr(const observer_ptr& rp):
Observer()
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*getObserverMutex());
_ptr = rp._ptr;

View File

@@ -84,7 +84,7 @@ public:
virtual void readCharArray( char* s, unsigned int size ) = 0;
virtual void readWrappedString( std::string& str ) = 0;
virtual bool matchString( const std::string& str ) { return false; }
virtual bool matchString( const std::string& /*str*/ ) { return false; }
virtual void advanceToCurrentEndBracket() {}
protected: