diff options
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/helper/binaryinputstream.hxx | 22 | ||||
-rw-r--r-- | include/oox/ole/axbinaryreader.hxx | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/oox/helper/binaryinputstream.hxx b/include/oox/helper/binaryinputstream.hxx index 50c4c800961f..1174b0f61f2f 100644 --- a/include/oox/helper/binaryinputstream.hxx +++ b/include/oox/helper/binaryinputstream.hxx @@ -86,28 +86,28 @@ public: All data types supported by the ByteOrderConverter class can be used. */ template< typename Type > - SAL_WARN_UNUSED_RESULT + [[nodiscard]] Type readValue(); - SAL_WARN_UNUSED_RESULT + [[nodiscard]] sal_Int8 readInt8() { return readValue<sal_Int8>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] sal_uInt8 readuInt8() { return readValue<sal_uInt8>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] sal_Int16 readInt16() { return readValue<sal_Int16>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] sal_uInt16 readuInt16() { return readValue<sal_uInt16>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] sal_Int32 readInt32() { return readValue<sal_Int32>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] sal_uInt32 readuInt32() { return readValue<sal_uInt32>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] sal_Int64 readInt64() { return readValue<sal_Int64>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] float readFloat() { return readValue<float>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] double readDouble() { return readValue<double>(); } - SAL_WARN_UNUSED_RESULT + [[nodiscard]] unsigned char readuChar() { return readValue<unsigned char>(); } /** Reads a (preallocated!) C array of values from the stream. diff --git a/include/oox/ole/axbinaryreader.hxx b/include/oox/ole/axbinaryreader.hxx index b15a7f1e4507..f9e3ddea24ff 100644 --- a/include/oox/ole/axbinaryreader.hxx +++ b/include/oox/ole/axbinaryreader.hxx @@ -76,7 +76,7 @@ public: /** Aligns the stream according to the passed type and reads a value. */ template< typename Type > - SAL_WARN_UNUSED_RESULT + [[nodiscard]] Type readAligned() { align( sizeof( Type ) ); return readValue< Type >(); } /** Aligns the stream according to the passed type and skips the size of the type. */ template< typename Type > |