diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/PixelPaint/Image.h | 3 | ||||
-rw-r--r-- | Userland/Applications/SoundPlayer/Player.h | 2 | ||||
-rw-r--r-- | Userland/Applications/SoundPlayer/VisualizationBase.h | 3 | ||||
-rw-r--r-- | Userland/Applications/SpaceAnalyzer/TreeMapWidget.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibCrypto/Checksum/ChecksumFunction.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibCrypto/Cipher/Cipher.h | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibCrypto/Hash/HashFunction.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibCrypto/PK/Code/Code.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibCrypto/PK/PK.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Console.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Cell.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibTextCodec/Decoder.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Page/Page.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibX86/Instruction.h | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibX86/Interpreter.h | 3 | ||||
-rw-r--r-- | Userland/Shell/NodeVisitor.h | 3 | ||||
-rw-r--r-- | Userland/Utilities/test-js.cpp | 2 |
17 files changed, 50 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Image.h b/Userland/Applications/PixelPaint/Image.h index 858c2381e1..6c8ff24b5e 100644 --- a/Userland/Applications/PixelPaint/Image.h +++ b/Userland/Applications/PixelPaint/Image.h @@ -49,6 +49,9 @@ public: virtual void image_did_modify_layer_stack() { } virtual void image_did_change() { } virtual void image_select_layer(Layer*) { } + +protected: + virtual ~ImageClient() = default; }; class Image : public RefCounted<Image> { diff --git a/Userland/Applications/SoundPlayer/Player.h b/Userland/Applications/SoundPlayer/Player.h index 00d5b65a3f..1b042ff7aa 100644 --- a/Userland/Applications/SoundPlayer/Player.h +++ b/Userland/Applications/SoundPlayer/Player.h @@ -84,6 +84,8 @@ public: PlaybackManager& manager() { return m_player_state.manager; } protected: + virtual ~Player() = default; + PlayerState m_player_state; RefPtr<PlaylistModel> m_playlist_model; }; diff --git a/Userland/Applications/SoundPlayer/VisualizationBase.h b/Userland/Applications/SoundPlayer/VisualizationBase.h index 839a7d8b10..6e89871eea 100644 --- a/Userland/Applications/SoundPlayer/VisualizationBase.h +++ b/Userland/Applications/SoundPlayer/VisualizationBase.h @@ -32,4 +32,7 @@ class Visualization { public: virtual void set_buffer(RefPtr<Audio::Buffer> buffer) = 0; virtual void set_samplerate(int) { } + +protected: + virtual ~Visualization() = default; }; diff --git a/Userland/Applications/SpaceAnalyzer/TreeMapWidget.h b/Userland/Applications/SpaceAnalyzer/TreeMapWidget.h index 644b4b6478..8145e4814b 100644 --- a/Userland/Applications/SpaceAnalyzer/TreeMapWidget.h +++ b/Userland/Applications/SpaceAnalyzer/TreeMapWidget.h @@ -37,6 +37,9 @@ struct TreeMapNode { virtual size_t num_children() const = 0; virtual const TreeMapNode& child_at(size_t i) const = 0; virtual void sort_children_by_area() const = 0; + +protected: + virtual ~TreeMapNode() = default; }; struct TreeMap : public RefCounted<TreeMap> { diff --git a/Userland/Libraries/LibCrypto/Checksum/ChecksumFunction.h b/Userland/Libraries/LibCrypto/Checksum/ChecksumFunction.h index c62ff1d4d9..e5e4e23ba3 100644 --- a/Userland/Libraries/LibCrypto/Checksum/ChecksumFunction.h +++ b/Userland/Libraries/LibCrypto/Checksum/ChecksumFunction.h @@ -35,6 +35,9 @@ class ChecksumFunction { public: virtual void update(ReadonlyBytes data) = 0; virtual ChecksumType digest() = 0; + +protected: + virtual ~ChecksumFunction() = default; }; } diff --git a/Userland/Libraries/LibCrypto/Cipher/Cipher.h b/Userland/Libraries/LibCrypto/Cipher/Cipher.h index a17db5a8c0..4aa9f1c604 100644 --- a/Userland/Libraries/LibCrypto/Cipher/Cipher.h +++ b/Userland/Libraries/LibCrypto/Cipher/Cipher.h @@ -92,6 +92,9 @@ public: ptr[index] = (u8)value; } +protected: + virtual ~CipherBlock() = default; + private: virtual Bytes bytes() = 0; PaddingMode m_padding_mode; @@ -132,6 +135,9 @@ public: virtual String class_name() const = 0; +protected: + virtual ~Cipher() = default; + private: PaddingMode m_padding_mode; }; diff --git a/Userland/Libraries/LibCrypto/Hash/HashFunction.h b/Userland/Libraries/LibCrypto/Hash/HashFunction.h index 3529615f50..c9e7d70c00 100644 --- a/Userland/Libraries/LibCrypto/Hash/HashFunction.h +++ b/Userland/Libraries/LibCrypto/Hash/HashFunction.h @@ -57,6 +57,9 @@ public: virtual void reset() = 0; virtual String class_name() const = 0; + +protected: + virtual ~HashFunction() = default; }; } } diff --git a/Userland/Libraries/LibCrypto/PK/Code/Code.h b/Userland/Libraries/LibCrypto/PK/Code/Code.h index b5a70ddb14..590d097c12 100644 --- a/Userland/Libraries/LibCrypto/PK/Code/Code.h +++ b/Userland/Libraries/LibCrypto/PK/Code/Code.h @@ -48,6 +48,8 @@ public: HashFunction& hasher() { return m_hasher; } protected: + virtual ~Code() = default; + HashFunction m_hasher; }; diff --git a/Userland/Libraries/LibCrypto/PK/PK.h b/Userland/Libraries/LibCrypto/PK/PK.h index 4186eb0c91..9761c586a3 100644 --- a/Userland/Libraries/LibCrypto/PK/PK.h +++ b/Userland/Libraries/LibCrypto/PK/PK.h @@ -60,6 +60,8 @@ public: virtual size_t output_size() const = 0; protected: + virtual ~PKSystem() = default; + PublicKeyType m_public_key; PrivateKeyType m_private_key; }; diff --git a/Userland/Libraries/LibJS/Console.h b/Userland/Libraries/LibJS/Console.h index 0782ddf14d..600e14e9a1 100644 --- a/Userland/Libraries/LibJS/Console.h +++ b/Userland/Libraries/LibJS/Console.h @@ -93,6 +93,8 @@ public: virtual Value count_reset() = 0; protected: + virtual ~ConsoleClient() = default; + VM& vm(); GlobalObject& global_object() { return m_console.global_object(); } diff --git a/Userland/Libraries/LibJS/Runtime/Cell.h b/Userland/Libraries/LibJS/Runtime/Cell.h index df4a19f19a..9927ef2cc6 100644 --- a/Userland/Libraries/LibJS/Runtime/Cell.h +++ b/Userland/Libraries/LibJS/Runtime/Cell.h @@ -58,6 +58,7 @@ public: protected: virtual void visit_impl(Cell*) = 0; + virtual ~Visitor() = default; }; virtual void visit_edges(Visitor&) { } diff --git a/Userland/Libraries/LibTextCodec/Decoder.h b/Userland/Libraries/LibTextCodec/Decoder.h index 3acb23f533..1740d6975e 100644 --- a/Userland/Libraries/LibTextCodec/Decoder.h +++ b/Userland/Libraries/LibTextCodec/Decoder.h @@ -33,6 +33,9 @@ namespace TextCodec { class Decoder { public: virtual String to_utf8(const StringView&) = 0; + +protected: + virtual ~Decoder() = default; }; class UTF8Decoder final : public Decoder { diff --git a/Userland/Libraries/LibWeb/Page/Page.h b/Userland/Libraries/LibWeb/Page/Page.h index 2df1f2a1fd..dab43a39a4 100644 --- a/Userland/Libraries/LibWeb/Page/Page.h +++ b/Userland/Libraries/LibWeb/Page/Page.h @@ -113,6 +113,9 @@ public: virtual String page_did_request_prompt(const String&, const String&) { return {}; } virtual String page_did_request_cookie(const URL&, Cookie::Source) { return {}; } virtual void page_did_set_cookie(const URL&, const String&, Cookie::Source) { } + +protected: + virtual ~PageClient() = default; }; } diff --git a/Userland/Libraries/LibX86/Instruction.h b/Userland/Libraries/LibX86/Instruction.h index 1c29ce65dd..24473a1754 100644 --- a/Userland/Libraries/LibX86/Instruction.h +++ b/Userland/Libraries/LibX86/Instruction.h @@ -41,6 +41,9 @@ typedef void (Interpreter::*InstructionHandler)(const Instruction&); class SymbolProvider { public: virtual String symbolicate(FlatPtr, u32* offset = nullptr) const = 0; + +protected: + virtual ~SymbolProvider() = default; }; template<typename T> @@ -316,6 +319,9 @@ public: virtual u16 read16() = 0; virtual u32 read32() = 0; virtual u64 read64() = 0; + +protected: + virtual ~InstructionStream() = default; }; class SimpleInstructionStream final : public InstructionStream { diff --git a/Userland/Libraries/LibX86/Interpreter.h b/Userland/Libraries/LibX86/Interpreter.h index efbf4164d8..49f71b50ce 100644 --- a/Userland/Libraries/LibX86/Interpreter.h +++ b/Userland/Libraries/LibX86/Interpreter.h @@ -622,6 +622,9 @@ public: virtual void wrap_0xD2(const Instruction&) = 0; virtual void wrap_0xD3_16(const Instruction&) = 0; virtual void wrap_0xD3_32(const Instruction&) = 0; + +protected: + virtual ~Interpreter() = default; }; typedef void (Interpreter::*InstructionHandler)(const Instruction&); diff --git a/Userland/Shell/NodeVisitor.h b/Userland/Shell/NodeVisitor.h index 8452d6d968..581443a27c 100644 --- a/Userland/Shell/NodeVisitor.h +++ b/Userland/Shell/NodeVisitor.h @@ -75,6 +75,9 @@ public: virtual void visit(const AST::VariableDeclarations*); virtual void visit(const AST::WriteAppendRedirection*); virtual void visit(const AST::WriteRedirection*); + +protected: + virtual ~NodeVisitor() = default; }; } diff --git a/Userland/Utilities/test-js.cpp b/Userland/Utilities/test-js.cpp index 665f9be454..e9fb4e5193 100644 --- a/Userland/Utilities/test-js.cpp +++ b/Userland/Utilities/test-js.cpp @@ -99,6 +99,8 @@ public: s_the = this; } + virtual ~TestRunner() = default; + void run(); const Test::Counts& counts() const { return m_counts; } |