mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
add const specifier to first argument, also made it reference
This commit is contained in:
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…
Reference in New Issue
Block a user