mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Fix constness of Proxy
This commit is contained in:
committed by
Vinnie Falco
parent
ac0142a49e
commit
e5bb90fdfa
@@ -110,11 +110,11 @@ private:
|
|||||||
class PropertyStream::Proxy
|
class PropertyStream::Proxy
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Map* m_map;
|
Map const* m_map;
|
||||||
std::string m_key;
|
std::string m_key;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Proxy (Map& map, std::string const& key);
|
Proxy (Map const& map, std::string const& key);
|
||||||
|
|
||||||
template <typename Value>
|
template <typename Value>
|
||||||
Proxy& operator= (Value value);
|
Proxy& operator= (Value value);
|
||||||
@@ -160,7 +160,7 @@ public:
|
|||||||
{ return Proxy (*this, key); }
|
{ return Proxy (*this, key); }
|
||||||
|
|
||||||
template <typename Key>
|
template <typename Key>
|
||||||
Proxy operator[] (Key key)
|
Proxy operator[] (Key key) const
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << key;
|
ss << key;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ PropertyStream::Source& PropertyStream::Item::operator* () const
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
PropertyStream::Proxy::Proxy (
|
PropertyStream::Proxy::Proxy (
|
||||||
Map& map, std::string const& key)
|
Map const& map, std::string const& key)
|
||||||
: m_map (&map)
|
: m_map (&map)
|
||||||
, m_key (key)
|
, m_key (key)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user