return 0;
}
- unsigned int GetStereoModeFlags(const std::string mode)
+ unsigned int GetStereoModeFlags(const std::string& mode)
{
static std::map<std::string, unsigned int> convert;
if(convert.empty())
unsigned int GetFlagsChromaPosition(unsigned int chroma_position);
unsigned int GetFlagsColorPrimaries(unsigned int color_primaries);
unsigned int GetFlagsColorTransfer(unsigned int color_transfer);
- unsigned int GetStereoModeFlags(const std::string mode);
+ unsigned int GetStereoModeFlags(const std::string& mode);
std::string GetStereoModeInvert(const std::string& mode);
}
}
}
-JSONRPC_STATUS CPlayerOperations::StartSlideshow(const std::string path, bool recursive, bool random)
+JSONRPC_STATUS CPlayerOperations::StartSlideshow(const std::string& path, bool recursive, bool random)
{
int flags = 0;
if (recursive)
static int GetActivePlayers();
static PlayerType GetPlayer(const CVariant &player);
static int GetPlaylist(PlayerType player);
- static JSONRPC_STATUS StartSlideshow(const std::string path, bool recursive, bool random);
+ static JSONRPC_STATUS StartSlideshow(const std::string& path, bool recursive, bool random);
static void SendSlideshowAction(int actionID);
static void OnPlaylistChanged();
static JSONRPC_STATUS GetPropertyValue(PlayerType player, const CStdString &property, CVariant &result);
return true;
}
-void CPythonInvoker::addPath(const std::string path)
+void CPythonInvoker::addPath(const std::string& path)
{
if (path.empty())
return;
private:
void initializeModules(const std::map<std::string, PythonModuleInitialization> &modules);
bool initializeModule(PythonModuleInitialization module);
- void addPath(const std::string path);
+ void addPath(const std::string& path);
std::string m_pythonPath;
void *m_threadState;
Parses the XML for multiple tags of the given name.
Does not clear the array to support chaining.
*/
-bool XMLUtils::GetStringArray(const TiXmlNode* pRootNode, const char* strTag, std::vector<std::string>& arrayValue, bool clear /* = false */, const std::string separator /* = "" */)
+bool XMLUtils::GetStringArray(const TiXmlNode* pRootNode, const char* strTag, std::vector<std::string>& arrayValue, bool clear /* = false */, const std::string& separator /* = "" */)
{
std::string strTemp;
const TiXmlElement* node = pRootNode->FirstChildElement(strTag);
\param clear if true, clears the string prior to adding tags, if tags are available. Defaults to false.
*/
static bool GetAdditiveString(const TiXmlNode* rootNode, const char* tag, const CStdString& separator, CStdString& value, bool clear = false);
- static bool GetStringArray(const TiXmlNode* rootNode, const char* tag, std::vector<std::string>& arrayValue, bool clear = false, const std::string separator = "");
+ static bool GetStringArray(const TiXmlNode* rootNode, const char* tag, std::vector<std::string>& arrayValue, bool clear = false, const std::string& separator = "");
static bool GetEncoding(const CXBMCTinyXML* pDoc, CStdString& strEncoding);
static bool GetPath(const TiXmlNode* pRootNode, const char* strTag, CStdString& strStringValue);
static bool GetFloat(const TiXmlNode* pRootNode, const char* strTag, float& value, const float min, const float max);