static inline bool GetSetValue(OTSettings & config, const std::string strKeyName, const int32_t nDefaultValue, const int32_t *& out_nValue) { if (strKeyName.empty()) return false; if (3 > strKeyName.size()) return false; OTString strResult(""); bool bIsNew(false); { int64_t nValue = 0; config.CheckSet_long("crypto",strKeyName,nDefaultValue,nValue,bIsNew); if (NULL != out_nValue) { delete out_nValue; out_nValue = NULL; } out_nValue = new int32_t(bIsNew ? nDefaultValue : static_cast<int32_t>(nValue)); } return true; }