1
0
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:
Nikolay Kasyanov 2012-07-28 02:39:49 +04:00
parent 7161361b52
commit a84d8e83cd
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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