diff base/ZoomConstraint.h @ 1528:a7485c1bdba5

Tests and a couple of minor fixes for zoom constraints
author Chris Cannam
date Tue, 18 Sep 2018 15:04:46 +0100
parents 48e9f538e6e9
children c1c45c5146bb
line wrap: on
line diff
--- a/base/ZoomConstraint.h	Fri Sep 14 15:32:43 2018 +0100
+++ b/base/ZoomConstraint.h	Tue Sep 18 15:04:46 2018 +0100
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _ZOOM_CONSTRAINT_H_
-#define _ZOOM_CONSTRAINT_H_
+#ifndef SV_ZOOM_CONSTRAINT_H
+#define SV_ZOOM_CONSTRAINT_H
 
 #include <stdlib.h>
 
@@ -49,7 +49,7 @@
      * depending on the rounding direction supplied.
      */
     virtual int getNearestBlockSize(int requestedBlockSize,
-                                       RoundingDirection = RoundNearest)
+                                    RoundingDirection = RoundNearest)
         const
     {
         if (requestedBlockSize > getMaxZoomLevel()) return getMaxZoomLevel();