forked from mirror/openmw-tes3mp
Fix shadowing warnings
This commit is contained in:
parent
a5da3a269e
commit
4322e76cb6
3 changed files with 5 additions and 5 deletions
|
@ -58,7 +58,7 @@ namespace
|
|||
}
|
||||
for (size_t j = 0; j < numbytes; ++j)
|
||||
{
|
||||
unsigned char ch = utf8[i++];
|
||||
ch = utf8[i++];
|
||||
if (ch < 0x80 || ch > 0xBF)
|
||||
throw std::logic_error("not a UTF-8 string");
|
||||
unicode <<= 6;
|
||||
|
@ -374,7 +374,7 @@ namespace Gui
|
|||
if (it->first != i)
|
||||
continue;
|
||||
|
||||
MyGUI::xml::ElementPtr code = codes->createChild("Code");
|
||||
code = codes->createChild("Code");
|
||||
code->addAttribute("index", it->second);
|
||||
code->addAttribute("coord", MyGUI::utility::toString(x1) + " "
|
||||
+ MyGUI::utility::toString(y1) + " "
|
||||
|
|
|
@ -172,7 +172,7 @@ namespace Interpreter{
|
|||
|
||||
for(unsigned int j = 0; j < globals.size(); j++){
|
||||
if(globals[j].length() > temp.length()){ // Just in case there's a global with a huuuge name
|
||||
std::string temp = text.substr(i+1, globals[j].length());
|
||||
temp = text.substr(i+1, globals[j].length());
|
||||
transform(temp.begin(), temp.end(), temp.begin(), ::tolower);
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ osg::ref_ptr<IndexArrayType> createIndexBuffer(unsigned int flags, unsigned int
|
|||
// West
|
||||
size_t col = 0;
|
||||
outerStep = size_t(1) << (lodDeltas[Terrain::West] + lodLevel);
|
||||
for (size_t row = 0; row < verts-1; row += outerStep)
|
||||
for (row = 0; row < verts-1; row += outerStep)
|
||||
{
|
||||
indices->push_back(verts*col+row+outerStep);
|
||||
indices->push_back(verts*col+row);
|
||||
|
@ -148,7 +148,7 @@ osg::ref_ptr<IndexArrayType> createIndexBuffer(unsigned int flags, unsigned int
|
|||
// East
|
||||
col = verts-1;
|
||||
outerStep = size_t(1) << (lodDeltas[Terrain::East] + lodLevel);
|
||||
for (size_t row = 0; row < verts-1; row += outerStep)
|
||||
for (row = 0; row < verts-1; row += outerStep)
|
||||
{
|
||||
indices->push_back(verts*col+row);
|
||||
indices->push_back(verts*col+row+outerStep);
|
||||
|
|
Loading…
Reference in a new issue