Commit a9b070ce authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

lrc: remove const from NewAccountModel get method

- remove the complexity of const_cast in windows platform

Change-Id: I036042cb74f3332075cf8cd56f2c694ecd0fe799
parent 0ffeb737
......@@ -47,7 +47,7 @@ public:
* get a reference on account model.
* @return a NewAccountModel&.
*/
const NewAccountModel& getAccountModel() const;
NewAccountModel& getAccountModel() const;
/**
* get a reference on the behavior controller.
* @return a BehaviorController&.
......
......@@ -74,7 +74,7 @@ Lrc::~Lrc()
#endif //ENABLE_LIBWRAP
}
const NewAccountModel&
NewAccountModel&
Lrc::getAccountModel() const
{
return *lrcPimpl_->accountModel;
......@@ -147,4 +147,4 @@ LrcPimpl::LrcPimpl(Lrc& linked)
{
}
} // namespace lrc
\ No newline at end of file
} // namespace lrc
Supports Markdown
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