~ubuntu-branches/ubuntu/quantal/linpsk/quantal

« back to all changes in this revision

Viewing changes to debian/patches/gcc-4.6.patch

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-09-19 21:34:50 UTC
  • Revision ID: package-import@ubuntu.com-20110919213450-w4ezw2kh1w0ttmob
Tags: 1.1-1ubuntu1
Fix FTBFS with g++-4.6. Closes: #624967, LP: #770983.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Upstream changes introduced in version 1.1-1ubuntu1
 
2
 This patch has been created by dpkg-source during the package build.
 
3
 Here's the last changelog entry, hopefully it gives details on why
 
4
 those changes were made:
 
5
 .
 
6
 linpsk (1.1-1ubuntu1) oneiric; urgency=low
 
7
 .
 
8
   * Fix FTBFS with g++-4.6. Closes: #624967, LP: #770983.
 
9
 .
 
10
 The person named in the Author field signed this changelog entry.
 
11
Author: Matthias Klose <doko@ubuntu.com>
 
12
Bug-Debian: http://bugs.debian.org/624967
 
13
Bug-Ubuntu: https://bugs.launchpad.net/bugs/770983
 
14
 
 
15
---
 
16
The information above should follow the Patch Tagging Guidelines, please
 
17
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
 
18
are templates for supplementary fields that you might want to add:
 
19
 
 
20
Origin: <vendor|upstream|other>, <url of original patch>
 
21
Bug: <url in upstream bugtracker>
 
22
Bug-Debian: http://bugs.debian.org/<bugnumber>
 
23
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
 
24
Forwarded: <no|not-needed|url proving that it has been forwarded>
 
25
Reviewed-By: <name and email of someone who approved the patch>
 
26
Last-Update: <YYYY-MM-DD>
 
27
 
 
28
--- linpsk-1.1.orig/src/linpsk.cpp
 
29
+++ linpsk-1.1/src/linpsk.cpp
 
30
@@ -685,12 +685,14 @@ void LinPSK::setRxMode()
 
31
     Menu.setParameter ( *Param );
 
32
   if ( Menu.exec() != 0 )
 
33
   {
 
34
+    ExtraParameter mParam;
 
35
     Mode rxmode = ( Mode ) Menu.selectedMode();
 
36
     settings.ActChannel->setMode ( rxmode );
 
37
     RxDisplay->RxFreq->setAfcDisplayMode ( settings.ActChannel->AfcProperties() );
 
38
     RxDisplay->RxFreq->setAfcMode ( settings.ActChannel->getAfcMode() );
 
39
     Control->Display->setPhasePointer ( settings.ActChannel->getPhasePointer() );
 
40
-    settings.ActChannel->setParameter ( Extra, &Menu.getParameter() );
 
41
+    mParam = Menu.getParameter();
 
42
+    settings.ActChannel->setParameter ( Extra, &mParam );
 
43
   }
 
44
   if ( settings.ActChannel != 0 )
 
45
     switch ( settings.ActChannel->getModulationType() )