summaryrefslogtreecommitdiff
path: root/wm/fluxbox/patches/patch-bf
blob: 5347e5026f45be21e222aac7f02cac5dab5e09bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-bf,v 1.1 2007/11/01 13:08:06 rillig Exp $

Adding "const" to a primitive type is useless. Sunpro doesn't like it.

--- src/CurrentWindowCmd.cc.orig	2007-03-19 20:57:09.000000000 +0100
+++ src/CurrentWindowCmd.cc	2007-11-01 13:05:58.247018000 +0100
@@ -111,7 +111,7 @@ FluxboxWindow &WindowHelperCmd::fbwindow
     return *FocusControl::focusedFbWindow();
 }
 
-MoveCmd::MoveCmd(const int step_size_x, const int step_size_y) :
+MoveCmd::MoveCmd(int step_size_x, int step_size_y) :
   m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
 
 void MoveCmd::real_execute() {
@@ -120,7 +120,7 @@ void MoveCmd::real_execute() {
       fbwindow().y() + m_step_size_y);
 }
 
-ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
+ResizeCmd::ResizeCmd(int step_size_x, int step_size_y) :
     m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
 
 void ResizeCmd::real_execute() {
@@ -134,7 +134,7 @@ void ResizeCmd::real_execute() {
     fbwindow().resize(w, h);
 }
 
-MoveToCmd::MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc) :
+MoveToCmd::MoveToCmd(int step_size_x, int step_size_y, unsigned int refc) :
     m_step_size_x(step_size_x), m_step_size_y(step_size_y), m_refc(refc) { }
 
 void MoveToCmd::real_execute() {
@@ -161,7 +161,7 @@ void MoveToCmd::real_execute() {
 }
 
 
-ResizeToCmd::ResizeToCmd(const int step_size_x, const int step_size_y) :
+ResizeToCmd::ResizeToCmd(int step_size_x, int step_size_y) :
     m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
 
 void ResizeToCmd::real_execute() {