From 55252755384cc198070de6eb3b8a0bb04cf7bca4 Mon Sep 17 00:00:00 2001 From: Toby Gray Date: Thu, 7 Jun 2012 16:07:42 +0100 Subject: [PATCH] lib: Adding explicit default constructor for JLDirectoryEntry. This change allows JLDirectoryEntry to be used in standard container classes which need a default constructor. Without this then the Barry DLL will fail to compile for WinCE as the compiler doesn't think it can (or should) create a default constructor. --- src/m_javaloader.cc | 6 ++++++ src/m_javaloader.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/m_javaloader.cc b/src/m_javaloader.cc index 3df44d4f..1bc0f9ae 100644 --- a/src/m_javaloader.cc +++ b/src/m_javaloader.cc @@ -106,6 +106,12 @@ void JLDirectory::Dump(std::ostream &os) const /////////////////////////////////////////////////////////////////////////////// // JLDirectoryEntry class +JLDirectoryEntry::JLDirectoryEntry() + : m_level(0) + , SubDir(1) +{ +} + JLDirectoryEntry::JLDirectoryEntry(int level) : m_level(level) , SubDir(level + 1) diff --git a/src/m_javaloader.h b/src/m_javaloader.h index 2f1b92a7..927871ce 100644 --- a/src/m_javaloader.h +++ b/src/m_javaloader.h @@ -87,6 +87,7 @@ public: JLDirectory SubDir; public: + JLDirectoryEntry(); explicit JLDirectoryEntry(int level); void Parse(uint16_t id, const Data &entry_packet); -- 2.11.4.GIT