Skip to content

Commit

Permalink
tools/generate_proxy.cpp: avoid possibly undefined 'uint' type
Browse files Browse the repository at this point in the history
  • Loading branch information
pkgw committed Dec 20, 2015
1 parent 459fa93 commit 43f119a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/generate_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void generate_proxy(Xml::Document &doc, const char *filename)
if (!arg_name.length())
{
arg_name = "argin";
arg_name += toString <uint> (i);
arg_name += toString <unsigned int> (i);
}

// generate extra code to wrap object
Expand Down Expand Up @@ -445,7 +445,7 @@ void generate_proxy(Xml::Document &doc, const char *filename)

if (!arg_name.length())
{
arg_name = "argout" + toString <uint> (i);
arg_name = "argout" + toString <unsigned int> (i);
}

if (arg_object.length())
Expand Down Expand Up @@ -569,7 +569,7 @@ void generate_proxy(Xml::Document &doc, const char *filename)
// use a default if no arg name given
if (!arg_name.length())
{
arg_name = "arg" + toString <uint> (i);
arg_name = "arg" + toString <unsigned int> (i);
}

body << arg_name << ";" << endl;
Expand Down Expand Up @@ -605,7 +605,7 @@ void generate_proxy(Xml::Document &doc, const char *filename)

if (!arg_name.length())
{
arg_name = "arg" + toString <uint> (j);
arg_name = "arg" + toString <unsigned int> (j);
}

if (arg_object.length())
Expand Down

0 comments on commit 43f119a

Please sign in to comment.