mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove nested types SField::ref and SField::ptr...
* This silences a warning about a redundant cv-qualifier. * This makes future coding mistakes about redundant cv-qualifiers much less likely. * This makes the code easier to read.
This commit is contained in:
committed by
Tom Ritchford
parent
47482acf83
commit
100a76f0e8
@@ -29,7 +29,7 @@
|
||||
namespace ripple {
|
||||
|
||||
template<>
|
||||
STInteger<unsigned char>::STInteger(SerialIter& sit, SField::ref name)
|
||||
STInteger<unsigned char>::STInteger(SerialIter& sit, SField const& name)
|
||||
: STInteger(name, sit.get8())
|
||||
{
|
||||
}
|
||||
@@ -77,7 +77,7 @@ STUInt8::getJson (int) const
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
template<>
|
||||
STInteger<std::uint16_t>::STInteger(SerialIter& sit, SField::ref name)
|
||||
STInteger<std::uint16_t>::STInteger(SerialIter& sit, SField const& name)
|
||||
: STInteger(name, sit.get16())
|
||||
{
|
||||
}
|
||||
@@ -142,7 +142,7 @@ STUInt16::getJson (int) const
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
template<>
|
||||
STInteger<std::uint32_t>::STInteger(SerialIter& sit, SField::ref name)
|
||||
STInteger<std::uint32_t>::STInteger(SerialIter& sit, SField const& name)
|
||||
: STInteger(name, sit.get32())
|
||||
{
|
||||
}
|
||||
@@ -171,7 +171,7 @@ STUInt32::getJson (int) const
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
template<>
|
||||
STInteger<std::uint64_t>::STInteger(SerialIter& sit, SField::ref name)
|
||||
STInteger<std::uint64_t>::STInteger(SerialIter& sit, SField const& name)
|
||||
: STInteger(name, sit.get64())
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user