diff -r d141fc1ad77b -r e61a04404bdf qtms/src/qtmsmicsourceimpl.cpp --- a/qtms/src/qtmsmicsourceimpl.cpp Tue Jul 06 14:48:59 2010 +0300 +++ b/qtms/src/qtmsmicsourceimpl.cpp Wed Aug 18 10:16:02 2010 +0300 @@ -23,46 +23,43 @@ using namespace TMS; QTMSMicSourceImpl::QTMSMicSourceImpl() - { - } +{ +} QTMSMicSourceImpl::~QTMSMicSourceImpl() - { - } +{ +} gint QTMSMicSourceImpl::Create(QTMSSource*& qsource, TMS::TMSSource*& tmssource) - { +{ gint ret(QTMS_RESULT_INSUFFICIENT_MEMORY); QTMSMicSourceImpl* self = new QTMSMicSourceImpl(); - if (self) - { + if (self) { ret = self->PostConstruct(); - if (ret != QTMS_RESULT_SUCCESS) - { + if (ret != QTMS_RESULT_SUCCESS) { delete self; self = NULL; - } + } self->iSource = tmssource; - } + } qsource = self; return ret; - } +} gint QTMSMicSourceImpl::PostConstruct() - { +{ gint ret(QTMS_RESULT_SUCCESS); return ret; - } +} gint QTMSMicSourceImpl::GetSource(TMS::TMSSource*& tmssource) - { +{ gint ret(QTMS_RESULT_UNINITIALIZED_OBJECT); - if (iSource) - { + if (iSource) { tmssource = iSource; ret = QTMS_RESULT_SUCCESS; - } + } return ret; - } +} // End of file