diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/C++NPv2/display_logfile.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/C++NPv2/display_logfile.cpp b/examples/C++NPv2/display_logfile.cpp index cf744aa5398..6a641a6b714 100644 --- a/examples/C++NPv2/display_logfile.cpp +++ b/examples/C++NPv2/display_logfile.cpp @@ -195,13 +195,14 @@ class Logrec_Reader_Module : public ACE_Module<ACE_SYNCH> { public: Logrec_Reader_Module (const ACE_TString &filename) - : ACE_Module<ACE_SYNCH> - (ACE_TEXT ("Logrec Reader"), - &task_, // Initialize writer-side. - 0, // Ignore reader-side. - 0, - ACE_Module<ACE_SYNCH>::M_DELETE_READER), - task_ (filename) {} + : task_ (filename) + { + this->open (ACE_TEXT ("Logrec Reader"), + &task_, // Initialize writer-side. + 0, // Ignore reader-side. + 0, + ACE_Module<ACE_SYNCH>::M_DELETE_READER); + } private: Logrec_Reader task_; }; |