add const specifier to first argument, also made it reference

actorid
Nikolay Kasyanov 13 years ago
parent 7161361b52
commit a84d8e83cd

@ -5,7 +5,7 @@
#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;
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
std::ostringstream verStream;

@ -7,6 +7,6 @@ namespace Ogre {
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
Loading…
Cancel
Save