aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 12:12:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 12:12:20 +0000
commit9e989c9c78e96e4595a6426e975ba301580217dc (patch)
tree21afb8fe673e85f91a75613ae8c02ea518427ab4
parente44365a9f3d344acc0248383e2949bc8fdaf9bf1 (diff)
downloadpaludis-9e989c9c78e96e4595a6426e975ba301580217dc.tar.gz
paludis-9e989c9c78e96e4595a6426e975ba301580217dc.tar.xz
Unbreak config file subclasses when creating from a filename.
-rw-r--r--paludis/key_value_config_file.cc1
-rw-r--r--paludis/line_config_file.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/paludis/key_value_config_file.cc b/paludis/key_value_config_file.cc
index c031227..c3e1d7a 100644
--- a/paludis/key_value_config_file.cc
+++ b/paludis/key_value_config_file.cc
@@ -38,6 +38,7 @@ KeyValueConfigFile::KeyValueConfigFile(std::istream * const s) :
KeyValueConfigFile::KeyValueConfigFile(const std::string & filename) :
ConfigFile(filename)
{
+ need_lines();
}
KeyValueConfigFile::~KeyValueConfigFile()
diff --git a/paludis/line_config_file.cc b/paludis/line_config_file.cc
index a96ca87..e66807c 100644
--- a/paludis/line_config_file.cc
+++ b/paludis/line_config_file.cc
@@ -31,6 +31,7 @@ LineConfigFile::LineConfigFile(std::istream * const s) :
LineConfigFile::LineConfigFile(const std::string & filename) :
ConfigFile(filename)
{
+ need_lines();
}
void