mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 20:45:51 +00:00
Make some boost::format objects static.
This commit is contained in:
@@ -154,7 +154,8 @@ inline std::string strHex(const uint64 uiHost)
|
||||
|
||||
inline static std::string sqlEscape(const std::string& strSrc)
|
||||
{
|
||||
return str(boost::format("X'%s'") % strHex(strSrc));
|
||||
static boost::format f("X'%s'");
|
||||
return str(f % strHex(strSrc));
|
||||
}
|
||||
|
||||
template<class Iterator>
|
||||
|
||||
Reference in New Issue
Block a user