mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:23:23 +00:00
Mobile: remove DiveObjectHelper to bool casts
These were temporary functions as long as DiveObjectHelpers were used to access dives. All users now access the core directly and therefore don't have to test DiveObjectHelpers for validity. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1a6c1b275d
commit
461c610a3d
2 changed files with 0 additions and 12 deletions
|
@ -67,16 +67,6 @@ DiveObjectHelper::DiveObjectHelper(struct dive *d) :
|
|||
{
|
||||
}
|
||||
|
||||
DiveObjectHelper::operator bool() const
|
||||
{
|
||||
return !!m_dive;
|
||||
}
|
||||
|
||||
bool DiveObjectHelper::operator!() const
|
||||
{
|
||||
return !m_dive;
|
||||
}
|
||||
|
||||
int DiveObjectHelper::number() const
|
||||
{
|
||||
return m_dive->number;
|
||||
|
|
|
@ -50,8 +50,6 @@ class DiveObjectHelper {
|
|||
public:
|
||||
DiveObjectHelper(); // This is only to be used by Qt's metatype system!
|
||||
DiveObjectHelper(struct dive *dive);
|
||||
operator bool() const; // Returns false if this is an invalid default-generated object
|
||||
bool operator!() const; // Returns true if this is an invalid default-generated object
|
||||
int number() const;
|
||||
int id() const;
|
||||
int rating() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue