From 685c37df7f9dba82ca210f6340fee083e842a21d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 8 Jan 2002 13:34:39 +0000 Subject: [PATCH] add 'const' to reference git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3314 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/box.C | 2 +- src/box.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/box.C b/src/box.C index 023c382f91..6581649728 100644 --- a/src/box.C +++ b/src/box.C @@ -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 << " x2,y2: " << b.x2 << "," << b.y2 << std::endl; diff --git a/src/box.h b/src/box.h index 1d083663ba..884a28eb5d 100644 --- a/src/box.h +++ b/src/box.h @@ -38,6 +38,6 @@ struct Box { }; -std::ostream & operator<<(std::ostream &, Box &); +std::ostream & operator<<(std::ostream &, Box const &); #endif // BOX_H -- 2.39.2