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
This commit is contained in:
parent
77f1aebc6d
commit
174a220baf
@ -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
|
|||||||
|
|
||||||
//! 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)
|
|||||||
Pos += sizeToRead;
|
Pos += sizeToRead;
|
||||||
|
|
||||||
return sizeToRead;
|
return sizeToRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user