Mercurial > hg > svcore
comparison data/model/PowerOfSqrtTwoZoomConstraint.h @ 929:59e7fe1b1003 warnfix_no_size_t
Unsigned removals and warning fixes in data/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 14:33:42 +0100 |
parents | 0ed2b2e26b44 |
children | d4a28d1479a8 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
928:6a94bb528e9d | 929:59e7fe1b1003 |
---|---|
19 #include "base/ZoomConstraint.h" | 19 #include "base/ZoomConstraint.h" |
20 | 20 |
21 class PowerOfSqrtTwoZoomConstraint : virtual public ZoomConstraint | 21 class PowerOfSqrtTwoZoomConstraint : virtual public ZoomConstraint |
22 { | 22 { |
23 public: | 23 public: |
24 virtual size_t getNearestBlockSize(size_t requestedBlockSize, | 24 virtual int getNearestBlockSize(int requestedBlockSize, |
25 RoundingDirection dir = RoundNearest) | 25 RoundingDirection dir = RoundNearest) |
26 const; | 26 const; |
27 | 27 |
28 virtual size_t getNearestBlockSize(size_t requestedBlockSize, | 28 virtual int getNearestBlockSize(int requestedBlockSize, |
29 int &type, | 29 int &type, |
30 int &power, | 30 int &power, |
31 RoundingDirection dir = RoundNearest) | 31 RoundingDirection dir = RoundNearest) |
32 const; | 32 const; |
33 | 33 |
34 virtual size_t getMinCachePower() const { return 6; } | 34 virtual int getMinCachePower() const { return 6; } |
35 }; | 35 }; |
36 | 36 |
37 #endif | 37 #endif |
38 | 38 |