Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b9df36ec
Commit
b9df36ec
authored
Feb 06, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GAL::GetGridPoint() takes a const reference.
parent
81f84748
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
graphics_abstraction_layer.cpp
common/gal/graphics_abstraction_layer.cpp
+1
-1
graphics_abstraction_layer.h
include/gal/graphics_abstraction_layer.h
+1
-1
No files found.
common/gal/graphics_abstraction_layer.cpp
View file @
b9df36ec
...
@@ -232,7 +232,7 @@ void GAL::DrawGrid()
...
@@ -232,7 +232,7 @@ void GAL::DrawGrid()
}
}
VECTOR2D
GAL
::
GetGridPoint
(
VECTOR2D
aPoint
)
const
VECTOR2D
GAL
::
GetGridPoint
(
const
VECTOR2D
&
aPoint
)
const
{
{
VECTOR2D
pointWorld
=
ToWorld
(
aPoint
);
VECTOR2D
pointWorld
=
ToWorld
(
aPoint
);
...
...
include/gal/graphics_abstraction_layer.h
View file @
b9df36ec
...
@@ -720,7 +720,7 @@ public:
...
@@ -720,7 +720,7 @@ public:
* @param aPoint is the point for which the grid point is searched.
* @param aPoint is the point for which the grid point is searched.
* @return The nearest grid point.
* @return The nearest grid point.
*/
*/
VECTOR2D
GetGridPoint
(
VECTOR2D
aPoint
)
const
;
VECTOR2D
GetGridPoint
(
const
VECTOR2D
&
aPoint
)
const
;
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment