Skip to content

Commit

Permalink
Fix StelTranslator's destructure being non-virtual
Browse files Browse the repository at this point in the history
Now that it has a derived StelSkyTranslator that's being deleted by base
class pointer, the destructor must be virtual.
  • Loading branch information
10110111 committed Mar 11, 2024
1 parent a952b56 commit e5d9a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/StelTranslator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class StelTranslator
//! @param alangName The C locale name or language name like "fr" or "fr_FR". If string is "" or "system" it will use the system locale.
StelTranslator(const QString& adomain, const QString& alangName);

~StelTranslator();
virtual ~StelTranslator();

//! Checks whether any translations have been loaded
virtual bool isEmpty() const;
Expand Down

0 comments on commit e5d9a75

Please sign in to comment.