Mercurial > hg > svcore
diff base/ZoomConstraint.h @ 928:6a94bb528e9d warnfix_no_size_t
Remove size_t's, fix compiler warnings
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 13:52:07 +0100 |
parents | abaf3d7195ce |
children | 12f3b48668d4 |
line wrap: on
line diff
--- a/base/ZoomConstraint.h Tue Jun 03 11:05:49 2014 +0100 +++ b/base/ZoomConstraint.h Tue Jun 17 13:52:07 2014 +0100 @@ -48,7 +48,7 @@ * summaries at powers-of-two block sizes, return 1024 or 2048 * depending on the rounding direction supplied. */ - virtual size_t getNearestBlockSize(size_t requestedBlockSize, + virtual int getNearestBlockSize(int requestedBlockSize, RoundingDirection = RoundNearest) const { @@ -59,7 +59,7 @@ /** * Return the maximum zoom level within range for this constraint. */ - virtual size_t getMaxZoomLevel() const { return 262144; } + virtual int getMaxZoomLevel() const { return 262144; } }; #endif