~ubuntu-branches/ubuntu/vivid/aptitude/vivid

« back to all changes in this revision

Viewing changes to debian/patches/0001-Fix-build-with-g-4.7.patch

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2012-06-29 01:48:31 UTC
  • Revision ID: package-import@ubuntu.com-20120629014831-7yxujv9gswyo2hac
Tags: 0.6.6-1ubuntu2
Fix FTBFS with gcc-4.7 (LP: #1007969)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From f14a272b49a6f4b5c7a68b20c93c0894c267ec0c Mon Sep 17 00:00:00 2001
 
2
From: Adrian Lang <mail@adrianlang.de>
 
3
Date: Thu, 10 May 2012 16:58:16 +0200
 
4
Subject: [PATCH] Fix build with g++ 4.7
 
5
 
 
6
---
 
7
 src/generic/apt/aptitude_resolver.h                  |    2 ++
 
8
 src/generic/problemresolver/incremental_expression.h |    2 +-
 
9
 src/generic/util/dynamic_list_collection.h           |    6 +++---
 
10
 src/generic/util/dynamic_list_impl.h                 |    6 +++---
 
11
 4 files changed, 9 insertions(+), 7 deletions(-)
 
12
 
 
13
diff --git a/src/generic/apt/aptitude_resolver.h b/src/generic/apt/aptitude_resolver.h
 
14
index f2fa566..6270d80 100644
 
15
--- a/src/generic/apt/aptitude_resolver.h
 
16
+++ b/src/generic/apt/aptitude_resolver.h
 
17
@@ -450,6 +450,8 @@ public:
 
18
                    aptitudeDepCache *cache,
 
19
                    pkgPolicy *_policy);
 
20
 
 
21
+  virtual ~aptitude_resolver() {}
 
22
+
 
23
   /** \brief Return \b true if the given version will break a hold or
 
24
    *  install a forbidden version.
 
25
    */
 
26
diff --git a/src/generic/problemresolver/incremental_expression.h b/src/generic/problemresolver/incremental_expression.h
 
27
index da23520..81334ae 100644
 
28
--- a/src/generic/problemresolver/incremental_expression.h
 
29
+++ b/src/generic/problemresolver/incremental_expression.h
 
30
@@ -533,7 +533,7 @@ public:
 
31
       {
 
32
        T old_value = value;
 
33
        value = new_value;
 
34
-       signal_value_changed(old_value, new_value);
 
35
+       this->signal_value_changed(old_value, new_value);
 
36
       }
 
37
   }
 
38
 
 
39
diff --git a/src/generic/util/dynamic_list_collection.h b/src/generic/util/dynamic_list_collection.h
 
40
index 5539369..50ecc48 100644
 
41
--- a/src/generic/util/dynamic_list_collection.h
 
42
+++ b/src/generic/util/dynamic_list_collection.h
 
43
@@ -254,7 +254,7 @@ namespace aptitude
 
44
 
 
45
       const std::size_t insert_idx = insert_location - concrete_view.begin();
 
46
       concrete_view.insert(insert_location, cell(list, idx, value));
 
47
-      signal_inserted(value, insert_idx);
 
48
+      this->signal_inserted(value, insert_idx);
 
49
     }
 
50
 
 
51
     template<typename T>
 
52
@@ -316,7 +316,7 @@ namespace aptitude
 
53
           // removal BEFORE removing it!
 
54
           const std::size_t remove_idx = remove_location - concrete_view.begin();
 
55
           concrete_view.erase(remove_location);
 
56
-          signal_removed(value, remove_idx);
 
57
+          this->signal_removed(value, remove_idx);
 
58
         }
 
59
     }
 
60
 
 
61
@@ -412,7 +412,7 @@ namespace aptitude
 
62
         relocate_target = to_location;
 
63
 
 
64
       concrete_view.relocate(relocate_target, from_location);
 
65
-      signal_moved(value, from_idx, to_idx);
 
66
+      this->signal_moved(value, from_idx, to_idx);
 
67
     }
 
68
 
 
69
     template<typename T>
 
70
diff --git a/src/generic/util/dynamic_list_impl.h b/src/generic/util/dynamic_list_impl.h
 
71
index 6b0b8bc..90edc0f 100644
 
72
--- a/src/generic/util/dynamic_list_impl.h
 
73
+++ b/src/generic/util/dynamic_list_impl.h
 
74
@@ -91,7 +91,7 @@ namespace aptitude
 
75
     void dynamic_list_impl<T>::insert(const T &t, std::size_t position)
 
76
     {
 
77
       entries.insert(entries.begin() + position, t);
 
78
-      signal_inserted(t, position);
 
79
+      this->signal_inserted(t, position);
 
80
     }
 
81
 
 
82
     template<typename T>
 
83
@@ -99,7 +99,7 @@ namespace aptitude
 
84
     {
 
85
       T val = entries[position];
 
86
       entries.erase(entries.begin() + position);
 
87
-      signal_removed(val, position);
 
88
+      this->signal_removed(val, position);
 
89
     }
 
90
 
 
91
     template<typename T>
 
92
@@ -129,7 +129,7 @@ namespace aptitude
 
93
       const std::size_t idx_to_delete = to < from  ?  from + 1  :  from;
 
94
       entries.erase(entries.begin() + idx_to_delete);
 
95
 
 
96
-      signal_moved(val, from, to);
 
97
+      this->signal_moved(val, from, to);
 
98
     }
 
99
   }
 
100
 }
 
101
-- 
 
102
1.7.10
 
103