clang-tidy: override
[alexxy/gromacs.git] / src / gromacs / utility / stringstream.h
index e92f0e009f4b7254ebb4ce7d980ad9bcc6146d46..e50788685479c31c23720b029351b0907a534c9e 100644 (file)
@@ -68,8 +68,8 @@ class StringOutputStream : public TextOutputStream
         const std::string &toString() const { return str_; }
 
         // From TextOutputStream
-        virtual void write(const char *text);
-        virtual void close();
+        void write(const char *text) override;
+        void close() override;
 
     private:
         std::string str_;
@@ -111,8 +111,8 @@ class StringInputStream : public TextInputStream
         explicit StringInputStream(ArrayRef<const char *const> const &input);
 
         // From TextInputStream
-        virtual bool readLine(std::string *line);
-        virtual void close() {}
+        bool readLine(std::string *line) override;
+        void close() override {}
     private:
         std::string input_;
         size_t      pos_;