aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-10 14:36:17 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-10 14:36:17 (GMT)
commit4e2c7e2167a0e0efbfc73c1b226eaafa808736ee (patch)
treef0c93e730f02f991a70d5771a9dcb5b37f990658
parenta6ed9498cc0e31b0134ecd47de7d5383a062e535 (diff)
downloadfluxbox_paul-4e2c7e2167a0e0efbfc73c1b226eaafa808736ee.zip
fluxbox_paul-4e2c7e2167a0e0efbfc73c1b226eaafa808736ee.tar.bz2
moved helper struct TextPropPtr into anonymous namespace
-rw-r--r--src/FbTk/FbWindow.cc4
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
473namespace {
472struct TextPropPtr { 474struct 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
482std::string FbWindow::textProperty(Atom property) const { 486std::string FbWindow::textProperty(Atom property) const {
483 XTextProperty text_prop; 487 XTextProperty text_prop;
484 TextPropPtr helper(text_prop); 488 TextPropPtr helper(text_prop);