]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/CWriteFile.h
Avoid undefined arithmetic on nullptr in buffer_offset function
[irrlicht.git] / source / Irrlicht / CWriteFile.h
index d0e2c8040ab954b51529a2ecf57128228c0e8fd2..b09314b093c5455f03e5f59db90742915de122c3 100644 (file)
@@ -27,19 +27,19 @@ namespace io
                virtual ~CWriteFile();\r
 \r
                //! Reads an amount of bytes from the file.\r
-               virtual size_t write(const void* buffer, size_t sizeToWrite) _IRR_OVERRIDE_;\r
+               size_t write(const void* buffer, size_t sizeToWrite) override;\r
 \r
                //! Changes position in file, returns true if successful.\r
-               virtual bool seek(long finalPos, bool relativeMovement = false) _IRR_OVERRIDE_;\r
+               bool seek(long finalPos, bool relativeMovement = false) override;\r
 \r
                //! Returns the current position in the file.\r
-               virtual long getPos() const _IRR_OVERRIDE_;\r
+               long getPos() const override;\r
 \r
                //! Returns name of file.\r
-               virtual const io::path& getFileName() const _IRR_OVERRIDE_;\r
+               const io::path& getFileName() const override;\r
 \r
                //! Flush the content of the buffer in the file\r
-               virtual bool flush() _IRR_OVERRIDE_;\r
+               bool flush() override;\r
 \r
                //! returns if file is open\r
                bool isOpen() const;\r