aboutsummaryrefslogtreecommitdiff
path: root/src/reverse_iterator.h
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2017-07-15 21:06:04 +0200
committerPavel Janík <Pavel@Janik.cz>2017-07-15 21:19:44 +0200
commit4d4fb33fce0803f9c923307bdf82b8fdd2ed140b (patch)
treeb7ea69b4a03b7b2d8aaf49a06a5073971b7f7153 /src/reverse_iterator.h
parentafd2fca911c4a5e3a4d1f0993a226d40f250aff4 (diff)
Rename member field according to the style guide.
Diffstat (limited to 'src/reverse_iterator.h')
-rw-r--r--src/reverse_iterator.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/reverse_iterator.h b/src/reverse_iterator.h
index 409f895ce0..46789e5417 100644
--- a/src/reverse_iterator.h
+++ b/src/reverse_iterator.h
@@ -1,7 +1,7 @@
// Taken from https://gist.github.com/arvidsson/7231973
-#ifndef BITCOIN_REVERSE_ITERATOR_HPP
-#define BITCOIN_REVERSE_ITERATOR_HPP
+#ifndef BITCOIN_REVERSE_ITERATOR_H
+#define BITCOIN_REVERSE_ITERATOR_H
/**
* Template used for reverse iteration in C++11 range-based for loops.
@@ -14,19 +14,19 @@
template <typename T>
class reverse_range
{
- T &x;
+ T &m_x;
public:
- reverse_range(T &x) : x(x) {}
+ reverse_range(T &x) : m_x(x) {}
- auto begin() const -> decltype(this->x.rbegin())
+ auto begin() const -> decltype(this->m_x.rbegin())
{
- return x.rbegin();
+ return m_x.rbegin();
}
- auto end() const -> decltype(this->x.rend())
+ auto end() const -> decltype(this->m_x.rend())
{
- return x.rend();
+ return m_x.rend();
}
};
@@ -36,4 +36,4 @@ reverse_range<T> reverse_iterate(T &x)
return reverse_range<T>(x);
}
-#endif // BITCOIN_REVERSE_ITERATOR_HPP
+#endif // BITCOIN_REVERSE_ITERATOR_H