small change

This commit is contained in:
Jinhao 2019-03-05 03:37:01 +08:00
parent ed550480c1
commit 92ae306994
2 changed files with 4 additions and 2 deletions

View File

@ -47,8 +47,9 @@ namespace nana
/** /**
* Changes the title. When #show()/operator()# are invoked, the dialog of filebox will be created with the specified title. * Changes the title. When #show()/operator()# are invoked, the dialog of filebox will be created with the specified title.
* @param text Text of title * @param text Text of title
* @return the reference of *this.
*/ */
void title( ::std::string text); filebox& title( ::std::string text);
/// Sets a initial path /// Sets a initial path
/** /**

View File

@ -1384,9 +1384,10 @@ namespace nana
impl_->owner = wd; impl_->owner = wd;
} }
void filebox::title(std::string s) filebox& filebox::title(std::string s)
{ {
impl_->title.swap(s); impl_->title.swap(s);
return *this;
} }
filebox& filebox::init_path(const path_type& p) filebox& filebox::init_path(const path_type& p)