From 1643fa22237e418b896e45c7a8bec10f826dc177 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Wed, 11 Nov 2020 16:20:47 -0700 Subject: [PATCH] InputFileStream: Incorrectly defaulted constructor Problem: - The default constructor is is deleted because NonnullRefPtr has no default constructor and there is a member variable of that type, but the function is set as `= default`. Solution: - Remove the code because the function is actually deleted implicitly. --- Libraries/LibCore/FileStream.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibCore/FileStream.h b/Libraries/LibCore/FileStream.h index 0a67f983ff..e12520f87b 100644 --- a/Libraries/LibCore/FileStream.h +++ b/Libraries/LibCore/FileStream.h @@ -93,8 +93,6 @@ public: } private: - InputFileStream() = default; - NonnullRefPtr m_file; };