mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-13 21:36:43 +00:00
add const specifier to first argument, also made it reference
This commit is contained in:
parent
7161361b52
commit
a84d8e83cd
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
bool loadOgrePlugin(std::string pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
||||||
pluginName = pluginName + OGRE_PLUGIN_DEBUG_SUFFIX;
|
pluginName = pluginName + OGRE_PLUGIN_DEBUG_SUFFIX;
|
||||||
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
||||||
std::ostringstream verStream;
|
std::ostringstream verStream;
|
||||||
|
|
|
@ -7,6 +7,6 @@ namespace Ogre {
|
||||||
class Root;
|
class Root;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern bool loadOgrePlugin(std::string pluginDir, std::string pluginName, Ogre::Root &ogreRoot);
|
extern bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot);
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in a new issue