[Orxonox-commit 1694] r6413 - in code/branches/presentation2/src: libraries/core orxonox/sound
dafrick at orxonox.net
dafrick at orxonox.net
Fri Dec 25 14:06:28 CET 2009
Author: dafrick
Date: 2009-12-25 14:06:28 +0100 (Fri, 25 Dec 2009)
New Revision: 6413
Modified:
code/branches/presentation2/src/libraries/core/DynLib.cc
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
Log:
Resolved some bugs that stood in the way of compiling.
* In DynLib.cc there was a const string that (under linux) needed to be changed later. => Not const anymore.
* In SoundManager.cc the std::max algorithm hat one argument size_t and one unsigned int. Not they're both unsigned int.
Modified: code/branches/presentation2/src/libraries/core/DynLib.cc
===================================================================
--- code/branches/presentation2/src/libraries/core/DynLib.cc 2009-12-25 12:18:03 UTC (rev 6412)
+++ code/branches/presentation2/src/libraries/core/DynLib.cc 2009-12-25 13:06:28 UTC (rev 6413)
@@ -69,7 +69,7 @@
// Log library load
COUT(2) << "Loading module " << mName << std::endl;
- const std::string& name = mName;
+ std::string& name = mName;
#ifdef ORXONOX_PLATFORM_LINUX
// dlopen() does not add .so to the filename, like windows does for .dll
if (name.substr(name.length() - 3, 3) != ".so")
Modified: code/branches/presentation2/src/orxonox/sound/SoundManager.cc
===================================================================
--- code/branches/presentation2/src/orxonox/sound/SoundManager.cc 2009-12-25 12:18:03 UTC (rev 6412)
+++ code/branches/presentation2/src/orxonox/sound/SoundManager.cc 2009-12-25 13:06:28 UTC (rev 6413)
@@ -607,7 +607,7 @@
break;
}
}
- int used = std::max(this->usedSoundSources_.size(), this->minSources_);
+ int used = std::max((unsigned int)(this->usedSoundSources_.size()), this->minSources_);
// Subtract those we added in the statement above trough std::max
int available = (int)this->availableSoundSources_.size() - (used - (int)this->usedSoundSources_.size());
// Delete sources again to free resources if appropriate (more than 50% more available than used)
More information about the Orxonox-commit
mailing list