Removed unnecessary variable

1008-fix
tomangelo2 2017-10-15 23:35:09 +02:00
parent 52d9330114
commit 1e614d64d0
2 changed files with 3 additions and 14 deletions

View File

@ -39,7 +39,6 @@ namespace bp = boost::property_tree;
CFontConfigFile::CFontConfigFile()
: m_needsSave(false)
, m_useCurrentDirectory(false)
, m_loaded(false)
{
}
@ -54,18 +53,9 @@ bool CFontConfigFile::Init()
{
std::unique_ptr<std::istream> stream;
bool good;
if (m_useCurrentDirectory)
{
auto inputStream = MakeUnique<std::ifstream>("/fonts/fonts.ini");
good = inputStream->good();
stream = std::move(inputStream);
}
else
{
auto inputStream = MakeUnique<CInputStream>("/fonts/fonts.ini");
good = inputStream->is_open();
stream = std::move(inputStream);
}
auto inputStream = MakeUnique<CInputStream>("/fonts/fonts.ini");
good = inputStream->is_open();
stream = std::move(inputStream);
if (good)
{

View File

@ -58,7 +58,6 @@ public:
private:
boost::property_tree::ptree m_propertyTree;
bool m_needsSave;
bool m_useCurrentDirectory;
bool m_loaded;
};