[libcalamares] Fix build with non-namespaced KPMCore types

This commit is contained in:
Adriaan de Groot 2019-06-13 12:27:21 +02:00
parent d8dc512f45
commit 8885611ae3

View File

@ -44,25 +44,23 @@ namespace Partition
class PartitionIterator class PartitionIterator
{ {
public: public:
using Partition = ::Partition; ::Partition* operator*() const;
Partition* operator*() const;
void operator++(); void operator++();
bool operator==( const PartitionIterator& other ) const; bool operator==( const PartitionIterator& other ) const;
bool operator!=( const PartitionIterator& other ) const; bool operator!=( const PartitionIterator& other ) const;
static PartitionIterator begin( Device* device ); static PartitionIterator begin( ::Device* device );
static PartitionIterator begin( PartitionTable* table ); static PartitionIterator begin( ::PartitionTable* table );
static PartitionIterator end( Device* device ); static PartitionIterator end( ::Device* device );
static PartitionIterator end( PartitionTable* table ); static PartitionIterator end( ::PartitionTable* table );
private: private:
PartitionIterator( PartitionTable* table ); PartitionIterator( ::PartitionTable* table );
PartitionTable* m_table; ::PartitionTable* m_table;
Partition* m_current = nullptr; ::Partition* m_current = nullptr;
}; };
} // namespace Partition } // namespace Partition