fix compiler warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f9654e63e9
commit
a9d5f49c4a
3 changed files with 4 additions and 4 deletions
|
|
@ -186,8 +186,8 @@ class Allocate : public Dispatcher {
|
||||||
|
|
||||||
if (decl_match && returntype_match) {
|
if (decl_match && returntype_match) {
|
||||||
// Found an identical method in the base class
|
// Found an identical method in the base class
|
||||||
bool this_wrapping_protected_members = is_member_director(n); // This should really check for dirprot rather than just being a director method
|
bool this_wrapping_protected_members = is_member_director(n) ? true : false; // This should really check for dirprot rather than just being a director method
|
||||||
bool base_wrapping_protected_members = is_member_director(base); // This should really check for dirprot rather than just being a director method
|
bool base_wrapping_protected_members = is_member_director(base) ? true : false; // This should really check for dirprot rather than just being a director method
|
||||||
bool both_have_public_access = is_public(n) && is_public(base);
|
bool both_have_public_access = is_public(n) && is_public(base);
|
||||||
bool both_have_protected_access = (is_protected(n) && this_wrapping_protected_members) && (is_protected(base) && base_wrapping_protected_members);
|
bool both_have_protected_access = (is_protected(n) && this_wrapping_protected_members) && (is_protected(base) && base_wrapping_protected_members);
|
||||||
bool both_have_private_access = is_private(n) && is_private(base);
|
bool both_have_private_access = is_private(n) && is_private(base);
|
||||||
|
|
|
||||||
|
|
@ -1363,7 +1363,7 @@ public:
|
||||||
output = s_fakeoowrappers;
|
output = s_fakeoowrappers;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool really_overloaded = overloaded;
|
bool really_overloaded = overloaded ? true : false;
|
||||||
int min_num_of_arguments = emit_num_required(l);
|
int min_num_of_arguments = emit_num_required(l);
|
||||||
int max_num_of_arguments = emit_num_arguments(l);
|
int max_num_of_arguments = emit_num_arguments(l);
|
||||||
// For a function with default arguments, we end up with the fullest
|
// For a function with default arguments, we end up with the fullest
|
||||||
|
|
|
||||||
|
|
@ -2363,7 +2363,7 @@ int R::classDeclaration(Node *n) {
|
||||||
// typedefHandler(n);
|
// typedefHandler(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool opaque = GetFlag(n, "feature:opaque");
|
bool opaque = GetFlag(n, "feature:opaque") ? true : false;
|
||||||
|
|
||||||
if(opaque)
|
if(opaque)
|
||||||
opaqueClassDeclaration = name;
|
opaqueClassDeclaration = name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue