From 46087c7e08f96864bc14a9eaa06067f7672997a0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 16 Oct 2002 19:06:51 +0000 Subject: const pointer --- src/AtomHandler.hh | 5 +++-- src/Ewmh.hh | 6 +++--- src/Gnome.cc | 4 ++-- src/Gnome.hh | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/AtomHandler.hh b/src/AtomHandler.hh index df006f3..cdc7b51 100644 --- a/src/AtomHandler.hh +++ b/src/AtomHandler.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: AtomHandler.hh,v 1.2 2002/09/08 11:02:08 fluxgen Exp $ +// $Id: AtomHandler.hh,v 1.3 2002/10/16 19:01:41 fluxgen Exp $ #ifndef ATOMHANDLER_HH #define ATOMHANDLER_HH @@ -45,7 +45,8 @@ public: virtual void updateState(FluxboxWindow &win) = 0; virtual void updateHints(FluxboxWindow &win) = 0; - virtual bool checkClientMessage(const XClientMessageEvent &ce, BScreen *screen, FluxboxWindow *win) = 0; + virtual bool checkClientMessage(const XClientMessageEvent &ce, + BScreen * const screen, FluxboxWindow * const win) = 0; /// should this object be updated or not? bool update() const { return m_update; } diff --git a/src/Ewmh.hh b/src/Ewmh.hh index 672665a..b3f8154 100644 --- a/src/Ewmh.hh +++ b/src/Ewmh.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Ewmh.hh,v 1.2 2002/10/11 10:20:33 fluxgen Exp $ +// $Id: Ewmh.hh,v 1.3 2002/10/16 19:02:25 fluxgen Exp $ #include "AtomHandler.hh" @@ -45,7 +45,7 @@ public: bool checkClientMessage(const XClientMessageEvent &ce, - BScreen *screen, FluxboxWindow *win); + BScreen * const screen, FluxboxWindow * const win); private: enum { STATE_REMOVE = 0, STATE_ADD = 1, STATE_TOGGLE = 2}; @@ -58,7 +58,7 @@ private: Atom m_net_supported, m_net_client_list, m_net_client_list_stacking, m_net_number_of_desktops, m_net_desktop_geometry, m_net_desktop_viewport, m_net_current_desktop, m_net_desktop_names, m_net_active_window, m_net_workarea, - m_net_supporting_wm_check, m_net_virtual_roots; + m_net_supporting_wm_check, m_net_virtual_roots, m_net_moveresize_window; // root window messages Atom m_net_close_window, m_net_wm_moveresize; diff --git a/src/Gnome.cc b/src/Gnome.cc index 1eb0c04..4d21fb6 100644 --- a/src/Gnome.cc +++ b/src/Gnome.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Gnome.cc,v 1.3 2002/09/10 12:23:03 fluxgen Exp $ +// $Id: Gnome.cc,v 1.4 2002/10/16 19:06:51 fluxgen Exp $ #include "Gnome.hh" @@ -213,7 +213,7 @@ void Gnome::updateHints(FluxboxWindow &win) { } -bool Gnome::checkClientMessage(const XClientMessageEvent &ce, BScreen *screen, FluxboxWindow *win) { +bool Gnome::checkClientMessage(const XClientMessageEvent &ce, BScreen * const screen, FluxboxWindow * const win) { if (ce.message_type == m_gnome_wm_win_workspace) { #ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): Got workspace atom="<