Ticket #10396: 0002-Declare-BLooperListIterator-in-the-right-place.patch

File 0002-Declare-BLooperListIterator-in-the-right-place.patch, 1.2 KB (added by js, 10 years ago)
  • headers/private/app/LooperList.h

    From 3f75971a9bed11eec7c330e2f709176df8e796fe Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Fri, 10 Jan 2014 21:06:29 +0100
    Subject: [PATCH 02/10] Declare BLooperListIterator in the right place.
    
    Before, it tried to typedef it to a private struct, but outside of the
    class.
    ---
     headers/private/app/LooperList.h | 1 +
     src/kits/app/LooperList.cpp      | 2 --
     2 files changed, 1 insertion(+), 2 deletions(-)
    
    diff --git a/headers/private/app/LooperList.h b/headers/private/app/LooperList.h
    index 7bdc824..4968628 100644
    a b private:  
    5252
    5353        BLooper*    looper;
    5454    };
     55    typedef std::vector<BLooperList::LooperData>::iterator LooperDataIterator;
    5556    struct FindLooperPred {
    5657        FindLooperPred(const BLooper* loop) : looper(loop) {}
    5758        bool operator()(LooperData& Data);
  • src/kits/app/LooperList.cpp

    diff --git a/src/kits/app/LooperList.cpp b/src/kits/app/LooperList.cpp
    index e27460a..98902fc 100644
    a b namespace BPrivate {  
    2525
    2626BLooperList gLooperList;
    2727
    28 typedef vector<BLooperList::LooperData>::iterator LooperDataIterator;
    29 
    3028
    3129BLooperList::BLooperList()
    3230    :