Commit ce7c9df7 authored by ml's avatar ml

Create wb_erep when default constructor

parent fa9b3f55
......@@ -2,8 +2,10 @@
#include "wb_error.h"
#include "wb_ldh_msg.h"
wb_env::wb_env() : wb_status(LDH__NOSUCHWB), m_erep(0)
wb_env::wb_env() : wb_status(LDH__SUCCESS)
{
m_erep = new wb_erep();
m_erep->ref();
}
wb_env::wb_env(wb_erep *e) : wb_status(LDH__SUCCESS), m_erep(e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment