diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-10 14:36:17 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-10 14:36:17 (GMT) |
commit | 4e2c7e2167a0e0efbfc73c1b226eaafa808736ee (patch) | |
tree | f0c93e730f02f991a70d5771a9dcb5b37f990658 /src/FbTk | |
parent | a6ed9498cc0e31b0134ecd47de7d5383a062e535 (diff) | |
download | fluxbox_paul-4e2c7e2167a0e0efbfc73c1b226eaafa808736ee.zip fluxbox_paul-4e2c7e2167a0e0efbfc73c1b226eaafa808736ee.tar.bz2 |
moved helper struct TextPropPtr into anonymous namespace
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/FbWindow.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index e098e11..5b52a03 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc | |||
@@ -469,6 +469,8 @@ void FbWindow::reparent(const FbWindow &parent, int x, int y, bool continuing) { | |||
469 | if (continuing) // we will continue managing this window after reparent | 469 | if (continuing) // we will continue managing this window after reparent |
470 | updateGeometry(); | 470 | updateGeometry(); |
471 | } | 471 | } |
472 | |||
473 | namespace { | ||
472 | struct TextPropPtr { | 474 | struct TextPropPtr { |
473 | TextPropPtr(XTextProperty& prop):m_prop(prop) {} | 475 | TextPropPtr(XTextProperty& prop):m_prop(prop) {} |
474 | ~TextPropPtr() { | 476 | ~TextPropPtr() { |
@@ -479,6 +481,8 @@ struct TextPropPtr { | |||
479 | } | 481 | } |
480 | XTextProperty& m_prop; | 482 | XTextProperty& m_prop; |
481 | }; | 483 | }; |
484 | } | ||
485 | |||
482 | std::string FbWindow::textProperty(Atom property) const { | 486 | std::string FbWindow::textProperty(Atom property) const { |
483 | XTextProperty text_prop; | 487 | XTextProperty text_prop; |
484 | TextPropPtr helper(text_prop); | 488 | TextPropPtr helper(text_prop); |