interface/Size: fix -Wdeprecated-enum-float-conversion warning
Change-Id: I8ca131f57495f974a79292a42ba5ce42a47d2437 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6702 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -10,17 +10,15 @@
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
enum {
|
||||
B_SIZE_UNSET = -2,
|
||||
B_SIZE_UNLIMITED = 1024 * 1024 * 1024,
|
||||
};
|
||||
const float B_SIZE_UNSET = -2;
|
||||
const float B_SIZE_UNLIMITED = 1024 * 1024 * 1024;
|
||||
|
||||
|
||||
class BSize {
|
||||
public:
|
||||
float width;
|
||||
float height;
|
||||
|
||||
|
||||
inline BSize();
|
||||
inline BSize(const BSize& other);
|
||||
inline BSize(float width, float height);
|
||||
|
||||
Reference in New Issue
Block a user