mirror of
https://github.com/boostorg/optional.git
synced 2025-07-25 18:17:16 +02:00
Replace deprecated function reset in examples. Fixes #765.
[SVN r82912]
This commit is contained in:
@ -35,12 +35,12 @@
|
|||||||
optional<string> name ;
|
optional<string> name ;
|
||||||
if ( database.open() )
|
if ( database.open() )
|
||||||
{
|
{
|
||||||
name.reset ( database.lookup(employer_name) ) ;
|
name = database.lookup(employer_name) ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( can_ask_user )
|
if ( can_ask_user )
|
||||||
name.reset ( user.ask(employer_name) ) ;
|
name = user.ask(employer_name) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( name )
|
if ( name )
|
||||||
@ -63,7 +63,7 @@
|
|||||||
void clip_in_rect ( rect const& rect )
|
void clip_in_rect ( rect const& rect )
|
||||||
{
|
{
|
||||||
....
|
....
|
||||||
m_clipping_rect.reset ( rect ) ; // initialized here.
|
m_clipping_rect = rect ; // initialized here.
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw ( canvas& cvs )
|
void draw ( canvas& cvs )
|
||||||
|
Reference in New Issue
Block a user