summaryrefslogtreecommitdiff
path: root/src/test/testmain.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
commit593cccb16074fe9269dd2f278bd79859769eb1fd (patch)
treed8b3d93001021c59622ea88140dbbef8aee05013 /src/test/testmain.cpp
parentb7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (diff)
downloadplus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.gz
plus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.bz2
plus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.xz
plus-593cccb16074fe9269dd2f278bd79859769eb1fd.zip
Improve constructors in some classes.
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r--src/test/testmain.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp
index f2c978b5b..5e94f09d5 100644
--- a/src/test/testmain.cpp
+++ b/src/test/testmain.cpp
@@ -35,13 +35,10 @@
std::string fileName = "";
extern char *selfName;
-TestMain::TestMain()
+TestMain::TestMain() :
+ log(new Logger)
{
fileName = getSelfName();
-
- log = new Logger;
-// log->setLogFile(Client::getLocalDataDirectory()
-// + std::string("/test.log"));
log->setLogFile(Client::getLocalDataDirectory()
+ std::string("/manaplustest.log"));
}