diff options
-rw-r--r-- | include/xmloff/xmluconv.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xmloff/xmluconv.hxx b/include/xmloff/xmluconv.hxx index 06e047648832..40edab42cdfd 100644 --- a/include/xmloff/xmluconv.hxx +++ b/include/xmloff/xmluconv.hxx @@ -60,6 +60,9 @@ private: public: SvXMLTokenEnumerator( const OUString& rString, sal_Unicode cSeparator = u' ' ); + /** just so no-one accidentally passes a temporary to this, and ends up with this class + * accessing the temporary after the temporary has been deleted. */ + SvXMLTokenEnumerator( OUString&& , sal_Unicode cSeparator = u' ' ) = delete; bool getNextToken( OUString& rToken ); }; |