summaryrefslogtreecommitdiff
path: root/sax/inc/sax_decoder_factory.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2024-01-21 12:31:30 +0100
committerJoel Klinghed <the_jk@spawned.biz>2024-01-21 12:31:30 +0100
commit7dd49c6293172b494c78918507242cdb55d35137 (patch)
tree9c8ab822ab9501a5ea2f937e609144e00ea091c4 /sax/inc/sax_decoder_factory.hh
parentfc4547b412e28164af1bf8981234c6af959ccc0b (diff)
WIP
Diffstat (limited to 'sax/inc/sax_decoder_factory.hh')
-rw-r--r--sax/inc/sax_decoder_factory.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/inc/sax_decoder_factory.hh b/sax/inc/sax_decoder_factory.hh
index 80f1af3..2361ac3 100644
--- a/sax/inc/sax_decoder_factory.hh
+++ b/sax/inc/sax_decoder_factory.hh
@@ -2,7 +2,7 @@
#define SAX_DECODER_FACTORY_HH
#include <memory>
-#include <string>
+#include <string_view>
namespace modxml {
namespace sax {
@@ -23,7 +23,7 @@ class DecoderFactory {
* Note that encoding value isn't cleaned up or validated in any way, it is
* reported EXACTLY as found (even if not valid per XML spec).
*/
- virtual std::unique_ptr<Decoder> create(std::string const& encoding) = 0;
+ virtual std::unique_ptr<Decoder> create(std::string_view encoding) = 0;
protected:
DecoderFactory() = default;