Extracted storage_policy to improve coverage in string adapters

This commit is contained in:
Benoit Blanchon
2020-02-16 16:10:56 +01:00
parent 0814fc185f
commit 58298ec5ba
10 changed files with 59 additions and 43 deletions

View File

@@ -5,6 +5,7 @@
#pragma once
#include <ArduinoJson/Strings/ConstRamStringAdapter.hpp>
#include <ArduinoJson/Strings/StoragePolicy.hpp>
namespace ARDUINOJSON_NAMESPACE {
@@ -22,9 +23,7 @@ class RamStringAdapter : public ConstRamStringAdapter {
return dup;
}
bool isStatic() const {
return false;
}
typedef ARDUINOJSON_NAMESPACE::storage_policy::store_by_copy storage_policy;
};
template <typename TChar>