Commit graph

14 commits

Author SHA1 Message Date
James Harris
63c7175250 Remove warnings from generated adaptors.
This patch modifies the dbusxx-xml2cpp's generate_adaptor function  so
that it prevents generation of the MessageIter ri in cases where an
interface method has no input arguments.

By making this element conditional based on the presence of input
arguments we avoid "unused-but-set-variable" warning in code that uses
the DBus-C++ adaptor glue headers.

Change-Id: I0f04439bf7b2b3cecb9d639e61c2b6dedc148e51
Type: Code Improvement
2014-03-19 12:52:16 +01:00
Andreas Volz
1c8e43e6d6 - NO FUNCTIONAL CODE CHANGES!!!!
- changed code formating from tabs to spaces and others
- used astyle with this option:
  --style=ansi --indent=spaces=2 -M --pad-oper --unpad-paren --pad-header --align-pointer=name --lineend=linux
2011-11-28 12:44:11 +01:00
Andreas Volz
b100e9d32a replaced (func.size() > 1) with (!func.empty()) in generator (no change in functionality, only easier to read) 2011-11-28 11:55:44 +01:00
Andreas Volz
fcae4df485 [PATCH 02/15] Remove useless const qualifiers on return
From:    qolyester@green-communications.fr
2011-11-26 23:11:18 +01:00
Andreas Volz
b23f1b2eab From 37dbce02178757560c488f02016cb44770a7fafc Mon Sep 17 00:00:00 2001
From: thomas.himbacher <thomas.himbacher@gmail.com>
Date: Thu, 12 Aug 2010 18:13:26 +0200
Subject: [PATCH 1/3] removed wrong keyword const in adaptor generation

methods with several 'out' parameters have wrong
method signature with keywords 'const' for pass-by-reference
outputs.
2010-12-05 23:30:04 +01:00
Andreas Volz
a236363cce formated with astyle for easier merging 2009-11-16 23:44:57 +01:00
Andreas Volz
7a8c64c2a6 some formating 2009-11-16 23:39:28 +01:00
Andreas Volz
d55e70a385 sync from fd.orf 2009-11-16 22:14:08 +01:00
Hubert Figuiere
340dc8a667 Fix most of the warnings with -Wextra -Wshadow 2009-07-24 15:59:36 -04:00
Andreas Volz
c1b76ad6a4 formating 2009-03-29 15:40:27 +02:00
Andreas Volz
38e25a847f only some comment 2009-03-29 14:19:05 +02:00
Andreas Volz
f88e32ba32 some header and include changes 2009-03-29 13:52:24 +02:00
Andreas Volz
fbc0227d56 use extern variable 2009-03-28 23:01:26 +01:00
Andreas Volz
7424df631d split into multiple files for better organization 2009-03-28 22:27:08 +01:00