mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix warnings and errors
This commit is contained in:
@@ -276,6 +276,22 @@ namespace beast
|
||||
|
||||
}
|
||||
|
||||
#ifdef _CRTDBG_MAP_ALLOC
|
||||
#pragma pop_macro("calloc")
|
||||
#pragma pop_macro("free")
|
||||
#pragma pop_macro("malloc")
|
||||
#pragma pop_macro("realloc")
|
||||
#pragma pop_macro("_recalloc")
|
||||
#pragma pop_macro("_aligned_free")
|
||||
#pragma pop_macro("_aligned_malloc")
|
||||
#pragma pop_macro("_aligned_offset_malloc")
|
||||
#pragma pop_macro("_aligned_realloc")
|
||||
#pragma pop_macro("_aligned_recalloc")
|
||||
#pragma pop_macro("_aligned_offset_realloc")
|
||||
#pragma pop_macro("_aligned_offset_recalloc")
|
||||
#pragma pop_macro("_aligned_msize")
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if BEAST_BOOST_IS_AVAILABLE
|
||||
|
||||
@@ -59,6 +59,11 @@ public:
|
||||
KeyType const m_type;
|
||||
};
|
||||
|
||||
private:
|
||||
// VFALCO TODO use String instead of std::string
|
||||
typedef std::map <std::string, Item*> NameMap;
|
||||
typedef std::map <KeyType, Item*> TypeMap;
|
||||
|
||||
public:
|
||||
/** Create the known formats object.
|
||||
|
||||
@@ -104,7 +109,7 @@ public:
|
||||
{
|
||||
Item* result = nullptr;
|
||||
|
||||
TypeMap::const_iterator const iter = m_types.find (type);
|
||||
typename TypeMap::const_iterator const iter = m_types.find (type);
|
||||
|
||||
if (iter != m_types.end ())
|
||||
{
|
||||
@@ -121,7 +126,7 @@ protected:
|
||||
{
|
||||
Item* result = nullptr;
|
||||
|
||||
NameMap::const_iterator const iter = m_names.find (name);
|
||||
typename NameMap::const_iterator const iter = m_names.find (name);
|
||||
|
||||
if (iter != m_names.end ())
|
||||
{
|
||||
@@ -159,10 +164,6 @@ protected:
|
||||
virtual void addCommonFields (Item& item) = 0;
|
||||
|
||||
private:
|
||||
// VFALCO TODO use String instead of std::string
|
||||
typedef std::map <std::string, Item*> NameMap;
|
||||
typedef std::map <KeyType, Item*> TypeMap;
|
||||
|
||||
OwnedArray <Item> m_formats;
|
||||
NameMap m_names;
|
||||
TypeMap m_types;
|
||||
|
||||
@@ -4,13 +4,15 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifndef RIPPLE_LEDGERFORMAT_H
|
||||
#define RIPPLE_LEDGERFORMAT_H
|
||||
#ifndef RIPPLE_LEDGERFORMATS_H_INCLUDED
|
||||
#define RIPPLE_LEDGERFORMATS_H_INCLUDED
|
||||
|
||||
/**
|
||||
/** Ledger entry types.
|
||||
|
||||
These are stored in serialized data.
|
||||
|
||||
@note Changing these values results in a hard fork.
|
||||
|
||||
@ingroup protocol
|
||||
*/
|
||||
// Used as the type of a transaction or the type of a ledger entry.
|
||||
|
||||
Reference in New Issue
Block a user