summaryrefslogtreecommitdiff
path: root/data/location.cc
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2012-11-03 16:22:15 +0100
committerAkim Demaille <akim@lrde.epita.fr>2012-11-05 13:13:19 +0100
commit0e1ccdfae04efce6a1122ad9c4b0e85d9625c0bc (patch)
tree329d62baa4d7a09a9e0c5c5fb7ab93e05ab0c1fa /data/location.cc
parent86649705b4dc7a12e753405a3946ec36ba6a0bb9 (diff)
downloadbison-0e1ccdfae04efce6a1122ad9c4b0e85d9625c0bc.tar.gz
c++: fix position operator signatures
* data/location.cc (operator+=, operator-=): Remove const from return type.
Diffstat (limited to 'data/location.cc')
-rw-r--r--data/location.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/location.cc b/data/location.cc
index 92b6d096..49f5f349 100644
--- a/data/location.cc
+++ b/data/location.cc
@@ -87,7 +87,7 @@ b4_copyright([Positions for Bison parsers in C++],
};
/// Add and assign a position.
- inline const position&
+ inline position&
operator+= (position& res, const int width)
{
res.columns (width);
@@ -103,7 +103,7 @@ b4_copyright([Positions for Bison parsers in C++],
}
/// Add and assign a position.
- inline const position&
+ inline position&
operator-= (position& res, const int width)
{
return res += -width;