Commit 174a220b authored by hybrid's avatar hybrid

Fixed a compile error due to missing const qualifier.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@723 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 77f1aebc
...@@ -804,7 +804,7 @@ void CGUIEditWorkspace::setDrawGrid(bool drawGrid) ...@@ -804,7 +804,7 @@ void CGUIEditWorkspace::setDrawGrid(bool drawGrid)
DrawGrid = drawGrid; DrawGrid = drawGrid;
} }
void CGUIEditWorkspace::setGridSize(core::dimension2di &gridSize) void CGUIEditWorkspace::setGridSize(const core::dimension2di& gridSize)
{ {
GridSize = gridSize; GridSize = gridSize;
if (GridSize.Width < 2) if (GridSize.Width < 2)
......
...@@ -61,7 +61,7 @@ namespace gui ...@@ -61,7 +61,7 @@ namespace gui
//! grid drawing... //! grid drawing...
virtual void setDrawGrid(bool drawGrid); virtual void setDrawGrid(bool drawGrid);
virtual void setGridSize(core::dimension2di &gridSize); virtual void setGridSize(const core::dimension2di& gridSize);
virtual void setUseGrid(bool useGrid); virtual void setUseGrid(bool useGrid);
//! returns the first editable element under the mouse //! returns the first editable element under the mouse
......
...@@ -93,4 +93,5 @@ s32 CMemoryReadWriteFile::read(void* buffer, u32 sizeToRead) ...@@ -93,4 +93,5 @@ s32 CMemoryReadWriteFile::read(void* buffer, u32 sizeToRead)
Pos += sizeToRead; Pos += sizeToRead;
return sizeToRead; return sizeToRead;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment