Removed unnecessary variable
parent
52d9330114
commit
1e614d64d0
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -58,7 +58,6 @@ public:
|
|||
private:
|
||||
boost::property_tree::ptree m_propertyTree;
|
||||
bool m_needsSave;
|
||||
bool m_useCurrentDirectory;
|
||||
bool m_loaded;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue