blob: af8379c452cbd9bd94bdc81e0081a2c6368ca0f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- gtk/gtkmm/toolbar.cc.orig Thu Dec 11 16:01:25 2003
+++ gtk/gtkmm/toolbar.cc Thu Dec 11 16:02:55 2003
@@ -412,8 +412,10 @@
Toolbar::ToolList& Toolbar::tools()
{
//Create the instance if it hasn't been created yet:
- if(!tools_proxy_.get())
- tools_proxy_ = tools_proxy_ptr_type(new ToolList);
+ if(!tools_proxy_.get()) {
+ tools_proxy_ptr_type _tp(new ToolList);
+ tools_proxy_ = _tp;
+ }
//Update it (this might not be necessary):
*tools_proxy_ = ToolList(gobj());
@@ -424,8 +426,10 @@
const Toolbar::ToolList& Toolbar::tools() const
{
//Create the instance if it hasn't been created yet:
- if(!tools_proxy_.get())
- tools_proxy_ = tools_proxy_ptr_type(new ToolList);
+ if(!tools_proxy_.get()) {
+ tools_proxy_ptr_type _tp(new ToolList);
+ tools_proxy_ = _tp;
+ }
//Update it (this might not be necessary):
*tools_proxy_ = ToolList(const_cast<GtkToolbar*>(gobj()));
|