moved helper struct TextPropPtr into anonymous namespace
This commit is contained in:
parent
a6ed9498cc
commit
4e2c7e2167
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
namespace {
|
||||
struct TextPropPtr {
|
||||
TextPropPtr(XTextProperty& prop):m_prop(prop) {}
|
||||
~TextPropPtr() {
|
||||
|
@ -479,6 +481,8 @@ struct TextPropPtr {
|
|||
}
|
||||
XTextProperty& m_prop;
|
||||
};
|
||||
}
|
||||
|
||||
std::string FbWindow::textProperty(Atom property) const {
|
||||
XTextProperty text_prop;
|
||||
TextPropPtr helper(text_prop);
|
||||
|
|
Loading…
Reference in a new issue