moved helper struct TextPropPtr into anonymous namespace

This commit is contained in:
Mathias Gumz 2010-09-10 16:36:17 +02:00
parent a6ed9498cc
commit 4e2c7e2167

View file

@ -469,6 +469,8 @@ void FbWindow::reparent(const FbWindow &parent, int x, int y, bool continuing) {
if (continuing) // we will continue managing this window after reparent if (continuing) // we will continue managing this window after reparent
updateGeometry(); updateGeometry();
} }
namespace {
struct TextPropPtr { struct TextPropPtr {
TextPropPtr(XTextProperty& prop):m_prop(prop) {} TextPropPtr(XTextProperty& prop):m_prop(prop) {}
~TextPropPtr() { ~TextPropPtr() {
@ -479,6 +481,8 @@ struct TextPropPtr {
} }
XTextProperty& m_prop; XTextProperty& m_prop;
}; };
}
std::string FbWindow::textProperty(Atom property) const { std::string FbWindow::textProperty(Atom property) const {
XTextProperty text_prop; XTextProperty text_prop;
TextPropPtr helper(text_prop); TextPropPtr helper(text_prop);