aboutsummaryrefslogtreecommitdiff
path: root/util/fbcompose/XRenderWindow.cc
diff options
context:
space:
mode:
authorPaul Tagliamonte <paultag@fluxbox.org>2011-12-10 16:43:24 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2011-12-10 16:43:24 (GMT)
commit5e75c312050185267b05388a3991b932b447a75f (patch)
treeb7b39d55993e612f7bfb373a161f6f5cb4a1f81f /util/fbcompose/XRenderWindow.cc
parent596c283553fb2da7e9204621347462bb46b83c4d (diff)
downloadfluxbox_paul-fluxbox-gsoc-2011-integration.zip
fluxbox_paul-fluxbox-gsoc-2011-integration.tar.bz2
Fixing up the branch to use some of the changes that were made since the fork.fluxbox-gsoc-2011-integration
The operator "=" was ditched in favor of .reset( because (I'm quoting here): "it was an accident waiting to happen". Well. It builds now.
Diffstat (limited to 'util/fbcompose/XRenderWindow.cc')
-rw-r--r--util/fbcompose/XRenderWindow.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/fbcompose/XRenderWindow.cc b/util/fbcompose/XRenderWindow.cc
index eb4d672..499ffec 100644
--- a/util/fbcompose/XRenderWindow.cc
+++ b/util/fbcompose/XRenderWindow.cc
@@ -38,10 +38,10 @@ XRenderWindow::XRenderWindow(const XRenderScreen &screen, Window window_xid, con
38 m_pict_filter(pict_filter) { 38 m_pict_filter(pict_filter) {
39 39
40 XRenderPictFormat *content_pict_format = XRenderFindVisualFormat(display(), visual()); 40 XRenderPictFormat *content_pict_format = XRenderFindVisualFormat(display(), visual());
41 m_content_picture = new XRenderPicture(screen, content_pict_format, m_pict_filter); 41 m_content_picture.reset( new XRenderPicture(screen, content_pict_format, m_pict_filter) );
42 42
43 XRenderPictFormat *mask_pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32); 43 XRenderPictFormat *mask_pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32);
44 m_mask_picture = new XRenderPicture(screen, mask_pict_format, m_pict_filter); 44 m_mask_picture.reset( new XRenderPicture(screen, mask_pict_format, m_pict_filter) );
45} 45}
46 46
47// Destructor. 47// Destructor.