diff options
author | bobsayshilol <bobsayshilol@live.co.uk> | 2019-07-28 20:59:56 +0300 |
---|---|---|
committer | bobsayshilol <bobsayshilol@live.co.uk> | 2019-07-28 21:32:35 +0300 |
commit | 7e04d427fc846bcada98a61066cb6558d1f55510 (patch) | |
tree | ba2d2cc23ce169c2faa48060aa47ba781e218ca7 /lodepng.h | |
parent | 0326898e9081e6d92fa8a752df768c1452f0bcb0 (diff) |
Remove unnecessary virtual from lodepng::State.
Providing a virtual destructor allows a derived class to extend the
functionality of lodepng::State, however since it's intended as an RAII
wrapper for LodePNGState it doesn't offer any benefit to clients of
LodePNG to derive from it.
Diffstat (limited to 'lodepng.h')
-rw-r--r-- | lodepng.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -969,7 +969,7 @@ class State : public LodePNGState { public: State(); State(const State& other); - virtual ~State(); + ~State(); State& operator=(const State& other); }; |