summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/CFile.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-18 12:55:56 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-18 12:55:56 +0200
commit8aa3b74f80fd321539e828cd106efba44926e5f6 (patch)
treeb841ef60783c0925f38c0dfec2c9b98776d4a148 /Libraries/LibCore/CFile.h
parentdc572e31fa7f44319f01fc35f35df508e03beaba (diff)
downloadserenity-8aa3b74f80fd321539e828cd106efba44926e5f6.zip
LibCore: Make it possible to pass a parent to CFile constructors
Diffstat (limited to 'Libraries/LibCore/CFile.h')
-rw-r--r--Libraries/LibCore/CFile.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Libraries/LibCore/CFile.h b/Libraries/LibCore/CFile.h
index cabf7abb14..491aa16c94 100644
--- a/Libraries/LibCore/CFile.h
+++ b/Libraries/LibCore/CFile.h
@@ -6,8 +6,11 @@
class CFile final : public CIODevice {
C_OBJECT(CFile)
public:
- CFile() {}
- explicit CFile(const StringView&);
+ CFile(CObject* parent = nullptr)
+ : CIODevice(parent)
+ {
+ }
+ explicit CFile(const StringView&, CObject* parent = nullptr);
virtual ~CFile() override;
String filename() const { return m_filename; }