Merge lp:~alan-griffiths/compiz-core/fix-option into lp:compiz-core/0.9.5

Proposed by Alan Griffiths
Status: Merged
Approved by: Alan Griffiths
Approved revision: 2962
Merged at revision: 2962
Proposed branch: lp:~alan-griffiths/compiz-core/fix-option
Merge into: lp:compiz-core/0.9.5
Diff against target: 25 lines (+2/-5)
1 file modified
include/core/option.h (+2/-5)
To merge this branch: bzr merge lp:~alan-griffiths/compiz-core/fix-option
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
Review via email: mp+89964@code.launchpad.net

Description of the change

Match the comment and interface to the implementation

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks good, builds perfectly.

However the prototype change affects the ABI so technically you also need to increment CORE_ABIVERSION (include/core/abiversion.h). Maybe I'm being too pedantic, but once 0.9.7 is released it will be critical to do this...

review: Needs Fixing
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> Looks good, builds perfectly.
>
> However the prototype change affects the ABI so technically you also need to
> increment CORE_ABIVERSION (include/core/abiversion.h). Maybe I'm being too
> pedantic, but once 0.9.7 is released it will be critical to do this...

Hmm. Did the prototype change I reverted bump the ABI version? Or get out into the wild?

(Anyway, changing any template implementation will change the ABI - so not just prototype changes need to be considered).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I don't think it's in the wild. Just pointing it out for future reference...

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/core/option.h'
2--- include/core/option.h 2012-01-24 15:22:49 +0000
3+++ include/core/option.h 2012-01-24 18:08:25 +0000
4@@ -118,11 +118,8 @@
5 mValue = t;
6 }
7
8- /* In order to be exception safe, this MUST
9- * return a copy. Prefer to use a specific
10- * member instead */
11 template<typename T>
12- const T & get (const T & defaultValue = T ()) const
13+ const T & get () const
14 {
15 try
16 {
17@@ -218,7 +215,7 @@
18 */
19 class Class {
20 public:
21- virtual ~Class() {};
22+ virtual ~Class() {}
23 virtual Vector & getOptions () = 0;
24
25 virtual CompOption * getOption (const CompString &name);

Subscribers

People subscribed via source and target branches