add 'const' to reference

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3314 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-01-08 13:34:39 +00:00
parent 75408c2bcc
commit 685c37df7f
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ bool Box::contained(int x, int y)
} }
ostream & operator<<(ostream & o, Box & b) ostream & operator<<(ostream & o, Box const & b)
{ {
return o << "x1,y1: " << b.x1 << "," << b.y1 return o << "x1,y1: " << b.x1 << "," << b.y1
<< " x2,y2: " << b.x2 << "," << b.y2 << std::endl; << " x2,y2: " << b.x2 << "," << b.y2 << std::endl;

View File

@ -38,6 +38,6 @@ struct Box {
}; };
std::ostream & operator<<(std::ostream &, Box &); std::ostream & operator<<(std::ostream &, Box const &);
#endif // BOX_H #endif // BOX_H