Ticket #4847: libs_libmythsoundtouch_RateTransposer.h-bad-override-of-isEmpty.patch

File libs_libmythsoundtouch_RateTransposer.h-bad-override-of-isEmpty.patch, 1.0 KB (added by Erik Hovland <erik@…>, 16 years ago)

corrects the signature of RateTransposer::isEmpty() so it matches abstract class's isEmpty()

  • libs/libmythsoundtouch/RateTransposer.cpp

    isEmpty is const.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythsoundtouch/RateTransposer.cpp |    2 +-
     libs/libmythsoundtouch/RateTransposer.h   |    2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/libs/libmythsoundtouch/RateTransposer.cpp b/libs/libmythsoundtouch/RateTransposer.cpp
    index deccd3b..c121c19 100644
    a b void RateTransposer::clear() 
    355355
    356356
    357357// Returns nonzero if there aren't any samples available for outputting.
    358 uint RateTransposer::isEmpty()
     358int RateTransposer::isEmpty() const
    359359{
    360360    int res;
    361361
  • libs/libmythsoundtouch/RateTransposer.h

    diff --git a/libs/libmythsoundtouch/RateTransposer.h b/libs/libmythsoundtouch/RateTransposer.h
    index 856d1b3..85748a0 100644
    a b public: 
    154154    void clear();
    155155
    156156    /// Returns nonzero if there aren't any samples available for outputting.
    157     uint isEmpty();
     157    int isEmpty() const;
    158158};
    159159
    160160}