Changeset 4692

Show
Ignore:
Timestamp:
03/14/10 20:45:47 (4 years ago)
Author:
soohyunc
Message:

-- modifed suspend_grabbing() base funtion to avoid compile-time error, e.g.:

error: cannot allocate an object of abstract type ‘JpegEncoder?
note: because the following virtual functions are pure within ‘JpegEncoder?’:

this error occurred because suspend_grabbing() is declared as pure virtual
function earlier, hence no way to allocate an object of abstract JpegEncoder?,
for example.

it is now replaced with an empty function in module.h.

Location:
vic/branches/cc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/cc/codec/encoder-h261.cpp

    r4691 r4692  
    140140 
    141141        // should we suspend grabbing? 
    142         virtual bool suspend_grabbing(); 
     142        bool suspend_grabbing(); 
    143143 
    144144    protected: 
  • vic/branches/cc/module.h

    r4691 r4692  
    126126        double offset_; 
    127127        inline double offset() { return offset_; } 
    128         virtual bool suspend_grabbing() = 0; 
     128        virtual inline bool suspend_grabbing() {}; 
    129129 
    130130    protected: