[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/6] c++: fix position operator signatures
From: |
Akim Demaille |
Subject: |
[PATCH 5/6] c++: fix position operator signatures |
Date: |
Mon, 5 Nov 2012 13:14:29 +0100 |
* data/location.cc (operator+=, operator-=): Remove const from return
type.
---
data/location.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/location.cc b/data/location.cc
index 92b6d09..49f5f34 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;
--
1.8.0
- [PATCH 0/6] {branch-2.6} Minor changes mostly in the test suite, Akim Demaille, 2012/11/06
- [PATCH 2/6] tests: handle %parse-param in the generated yyerror, Akim Demaille, 2012/11/06
- [PATCH 3/6] tests: fix locations in C, Akim Demaille, 2012/11/06
- [PATCH 4/6] tests: remove useless location initialization., Akim Demaille, 2012/11/06
- [PATCH 5/6] c++: fix position operator signatures,
Akim Demaille <=
- [PATCH 1/6] tests: simplifications, Akim Demaille, 2012/11/06
- [PATCH 6/6] doc: formatting changes, Akim Demaille, 2012/11/06