]> git.lyx.org Git - features.git/commitdiff
add 'const' to reference
authorAndré Pönitz <poenitz@gmx.net>
Tue, 8 Jan 2002 13:34:39 +0000 (13:34 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 8 Jan 2002 13:34:39 +0000 (13:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3314 a592a061-630c-0410-9148-cb99ea01b6c8

src/box.C
src/box.h

index 023c382f91f95a4ac41db020971277b7d55fbfb0..6581649728161874462b2114e69a1b2bcc42b02c 100644 (file)
--- 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;
index 1d083663bacdcdfc89494063ee75f54cb28b5b79..884a28eb5d563995298e42e0c71b800f4514b03b 100644 (file)
--- 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