summaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-17 14:28:48 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-17 15:06:14 -0600
commit0e2f15442812c254e460e81275b20881234d92c1 (patch)
tree23135dedaa9ff94d897c242ed35931a28157fd6c /src/item.cc
parent3fd0c4229c3f7afb7a5cd0846655128283cc1f7a (diff)
downloadfork-ledger-0e2f15442812c254e460e81275b20881234d92c1.tar.gz
fork-ledger-0e2f15442812c254e460e81275b20881234d92c1.tar.bz2
fork-ledger-0e2f15442812c254e460e81275b20881234d92c1.zip
Fixes for variable shadowing (15/28)
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/item.cc b/src/item.cc
index 7e7cda0d..8a2b5585 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -148,9 +148,9 @@ void item_t::parse_tags(const char * p,
std::strncpy(buf, b + 1, e - b - 1);
buf[e - b - 1] = '\0';
- if (char * p = std::strchr(buf, '=')) {
- *p++ = '\0';
- _date_eff = parse_date(p);
+ if (char * pp = std::strchr(buf, '=')) {
+ *pp++ = '\0';
+ _date_eff = parse_date(pp);
}
if (buf[0])
_date = parse_date(buf);