summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2016-09-14 08:12:12 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2016-09-14 08:12:12 +0200
commitb8babe694859fe02a6113c4b7ab3cc2a8b3649b2 (patch)
treea8b7a01e697f54b086d59bd46973355b29a474a4
parenta3a3cd81a3c69438e7a6219619b21fbf2b891ba1 (diff)
downloadlibgee-b8babe694859fe02a6113c4b7ab3cc2a8b3649b2.tar.gz
Fix 'static const' warnings with vala 0.33.1
-rw-r--r--gee/concurrentset.vala2
-rw-r--r--gee/queue.vala2
-rw-r--r--gee/timsort.vala2
-rw-r--r--gee/unrolledlinkedlist.vala6
-rw-r--r--tests/testarraylist.vala2
-rw-r--r--tests/testdata.vala2
6 files changed, 8 insertions, 8 deletions
diff --git a/gee/concurrentset.vala b/gee/concurrentset.vala
index 5a642ae..a82051d 100644
--- a/gee/concurrentset.vala
+++ b/gee/concurrentset.vala
@@ -248,7 +248,7 @@ public class Gee.ConcurrentSet<G> : AbstractSortedSet<G> {
private int _size = 0;
private Tower<G> _head = new Tower<G>.head ();
private CompareDataFunc<G>? _cmp;
- private static const int _MAX_HEIGHT = 31;
+ private const int _MAX_HEIGHT = 31;
private static Private rand = new Private((ptr) => {
Rand *rnd = (Rand *)ptr;
delete rnd;
diff --git a/gee/queue.vala b/gee/queue.vala
index 90f3cc0..8de6864 100644
--- a/gee/queue.vala
+++ b/gee/queue.vala
@@ -49,7 +49,7 @@ public interface Gee.Queue<G> : Collection<G> {
/**
* The unbounded capacity value.
*/
- public static const int UNBOUNDED_CAPACITY = -1;
+ public const int UNBOUNDED_CAPACITY = -1;
/**
* The capacity of this queue (or ``UNBOUNDED_CAPACITY`` if capacity is not bound).
diff --git a/gee/timsort.vala b/gee/timsort.vala
index ad1e52e..d3c5ae9 100644
--- a/gee/timsort.vala
+++ b/gee/timsort.vala
@@ -85,7 +85,7 @@ internal class Gee.TimSort<G> : Object {
helper.do_sort ();
}
- private static const int MINIMUM_GALLOP = 7;
+ private const int MINIMUM_GALLOP = 7;
private List<G> list_collection;
private G[] array;
diff --git a/gee/unrolledlinkedlist.vala b/gee/unrolledlinkedlist.vala
index c6aac66..e36f88f 100644
--- a/gee/unrolledlinkedlist.vala
+++ b/gee/unrolledlinkedlist.vala
@@ -720,9 +720,9 @@ public class Gee.UnrolledLinkedList<G> : AbstractBidirList<G>, Queue<G>, Deque<G
private Node<G>? _head = null;
private unowned Node<G>? _tail = null;
private Functions.EqualDataFuncClosure<G> _equal_func;
- private static const int NODE_SIZE = 29; // Chosen for node to be multiply cache line (4 on 64 bit and 2 on 32 bit)
- private static const int SPLIT_POS = (NODE_SIZE - 1)/2 + 1;
- private static const int MERGE_THRESHOLD = (NODE_SIZE * 4)/5;
+ private const int NODE_SIZE = 29; // Chosen for node to be multiply cache line (4 on 64 bit and 2 on 32 bit)
+ private const int SPLIT_POS = (NODE_SIZE - 1)/2 + 1;
+ private const int MERGE_THRESHOLD = (NODE_SIZE * 4)/5;
private class Iterator<G> : Object, Gee.Traversable<G>, Gee.Iterator<G>, ListIterator<G>, BidirIterator<G>, BidirListIterator<G> {
public Iterator (UnrolledLinkedList<G> list) {
diff --git a/tests/testarraylist.vala b/tests/testarraylist.vala
index 381740e..40809aa 100644
--- a/tests/testarraylist.vala
+++ b/tests/testarraylist.vala
@@ -35,7 +35,7 @@ public class ArrayListTests : BidirListTests {
add_test ("[ArrayList] typed to_array calls", test_typed_to_array);
}
- private static const int BIG_SORT_SIZE = 1000000;
+ private const int BIG_SORT_SIZE = 1000000;
public override void set_up () {
test_collection = new ArrayList<string> ();
diff --git a/tests/testdata.vala b/tests/testdata.vala
index e69a970..6ec2771 100644
--- a/tests/testdata.vala
+++ b/tests/testdata.vala
@@ -30,7 +30,7 @@ public class TestData {
}
private static uint DATA_SIZE = data_size ();
- private static const uint RND_IDX_SIZE = 8;
+ private const uint RND_IDX_SIZE = 8;
private static string[] data = create_data (DATA_SIZE);
private static string[] sorted_data = sort_array (data);