Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lvandeve/lodepng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobsayshilol <bobsayshilol@live.co.uk>2019-07-28 20:59:56 +0300
committerbobsayshilol <bobsayshilol@live.co.uk>2019-07-28 21:32:35 +0300
commit7e04d427fc846bcada98a61066cb6558d1f55510 (patch)
treeba2d2cc23ce169c2faa48060aa47ba781e218ca7 /lodepng.h
parent0326898e9081e6d92fa8a752df768c1452f0bcb0 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lodepng.h b/lodepng.h
index fcabf76..f498251 100644
--- a/lodepng.h
+++ b/lodepng.h
@@ -969,7 +969,7 @@ class State : public LodePNGState {
public:
State();
State(const State& other);
- virtual ~State();
+ ~State();
State& operator=(const State& other);
};