diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-05-16 09:24:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-05-16 09:25:53 +0200 |
commit | df18d5878c71d8d38a43dd04c0e907f9385addb4 (patch) | |
tree | 72d8da1543c6835594f37b6d75cb194fc6f775b1 /include/xmlreader/pad.hxx | |
parent | 09269acdb98854b1892aa539efec7d6a7875ad06 (diff) |
Some string literal clean up
Change-Id: I108882af13fa97fa094547ec4efb468f988f337d
Diffstat (limited to 'include/xmlreader/pad.hxx')
-rw-r--r-- | include/xmlreader/pad.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xmlreader/pad.hxx b/include/xmlreader/pad.hxx index 0b8e1f3b7453..728a702d0a9e 100644 --- a/include/xmlreader/pad.hxx +++ b/include/xmlreader/pad.hxx @@ -22,6 +22,8 @@ #include "sal/config.h" +#include <cstddef> + #include "rtl/strbuf.hxx" #include "sal/types.h" #include "xmlreader/detail/xmlreaderdllapi.hxx" @@ -33,6 +35,10 @@ class OOO_DLLPUBLIC_XMLREADER Pad { public: void add(char const * begin, sal_Int32 length); + template< std::size_t N > void add(char const (& literal)[N]) { + add(literal, N - 1); + } + void addEphemeral(char const * begin, sal_Int32 length); void clear(); |