From b9df36eca58331ca17fda2c0389716f6026bf457 Mon Sep 17 00:00:00 2001
From: Maciej Suminski <maciej.suminski@cern.ch>
Date: Thu, 6 Feb 2014 12:38:06 +0100
Subject: [PATCH] GAL::GetGridPoint() takes a const reference.

---
 common/gal/graphics_abstraction_layer.cpp | 2 +-
 include/gal/graphics_abstraction_layer.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/gal/graphics_abstraction_layer.cpp b/common/gal/graphics_abstraction_layer.cpp
index 6fa929b062..2a3d9a089c 100644
--- a/common/gal/graphics_abstraction_layer.cpp
+++ b/common/gal/graphics_abstraction_layer.cpp
@@ -232,7 +232,7 @@ void GAL::DrawGrid()
 }
 
 
-VECTOR2D GAL::GetGridPoint( VECTOR2D aPoint ) const
+VECTOR2D GAL::GetGridPoint( const VECTOR2D& aPoint ) const
 {
     VECTOR2D pointWorld = ToWorld( aPoint );
 
diff --git a/include/gal/graphics_abstraction_layer.h b/include/gal/graphics_abstraction_layer.h
index 7745dfa172..118faf38ac 100644
--- a/include/gal/graphics_abstraction_layer.h
+++ b/include/gal/graphics_abstraction_layer.h
@@ -720,7 +720,7 @@ public:
      * @param aPoint is the point for which the grid point is searched.
      * @return The nearest grid point.
      */
-    VECTOR2D GetGridPoint( VECTOR2D aPoint ) const;
+    VECTOR2D GetGridPoint( const VECTOR2D& aPoint ) const;
 
 
     /**