aboutsummaryrefslogtreecommitdiff
path: root/Gem/develop
diff options
context:
space:
mode:
Diffstat (limited to 'Gem/develop')
-rw-r--r--Gem/develop/include/Gem/Base/CPPExtern.h4
-rw-r--r--Gem/develop/include/Gem/Base/TextBase.h2
-rw-r--r--Gem/develop/include/Gem/Gem/Dylib.h18
-rw-r--r--Gem/develop/include/Gem/Gem/Exception.h4
-rw-r--r--Gem/develop/include/Gem/Gem/ImageIO.h6
-rw-r--r--Gem/develop/include/Gem/Gem/Properties.h4
-rw-r--r--Gem/develop/include/Gem/Gem/Settings.h12
-rw-r--r--Gem/develop/include/Gem/RTE/MessageCallbacks.h4
8 files changed, 27 insertions, 27 deletions
diff --git a/Gem/develop/include/Gem/Base/CPPExtern.h b/Gem/develop/include/Gem/Base/CPPExtern.h
index ddacc54..1f296d9 100644
--- a/Gem/develop/include/Gem/Base/CPPExtern.h
+++ b/Gem/develop/include/Gem/Base/CPPExtern.h
@@ -146,8 +146,8 @@ class GEM_EXTERN CPPExtern
// wraps open_via_path() and canvas_makefilename()
// the full filename is returned
// if the file does not exist, it is constructed
- std::string findFile(const std::string filename, const std::string ext) const;
- std::string findFile(const std::string filename) const;
+ std::string findFile(const std::string&filename, const std::string&ext) const;
+ std::string findFile(const std::string&filename) const;
private:
mutable bool m_endpost; /* internal state for startpost/post/endpost */
diff --git a/Gem/develop/include/Gem/Base/TextBase.h b/Gem/develop/include/Gem/Base/TextBase.h
index f65204a..de1ebbe 100644
--- a/Gem/develop/include/Gem/Base/TextBase.h
+++ b/Gem/develop/include/Gem/Base/TextBase.h
@@ -97,7 +97,7 @@ class GEM_EXTERN TextBase : public GemBase
//////////
// The font to use
- virtual void fontNameMess(const std::string filename);
+ virtual void fontNameMess(const std::string&filename);
//////////
// set line distance
diff --git a/Gem/develop/include/Gem/Gem/Dylib.h b/Gem/develop/include/Gem/Gem/Dylib.h
index 5ed7fda..30fea7e 100644
--- a/Gem/develop/include/Gem/Gem/Dylib.h
+++ b/Gem/develop/include/Gem/Gem/Dylib.h
@@ -26,11 +26,11 @@ class GEM_EXTERN GemDylib {
public:
GemDylib(const CPPExtern*obj,
- const std::string libname,
- const std::string extension=std::string("")
+ const std::string&libname,
+ const std::string&extension=std::string("")
); // throws GemException
- GemDylib(const std::string libname,
- const std::string extension=std::string("")
+ GemDylib(const std::string&libname,
+ const std::string&extension=std::string("")
); // throws GemException
GemDylib(const GemDylib&);
@@ -43,10 +43,10 @@ class GEM_EXTERN GemDylib {
// if void<procname>(void) exists in dylib, run it and return "true"
// else return false;
- bool run(const std::string procname);
+ bool run(const std::string&procname);
// if <procname> exists in dylib, return it, else return NULL
- function_t proc(const std::string procname);
+ function_t proc(const std::string&procname);
public:
/**
@@ -54,9 +54,9 @@ class GEM_EXTERN GemDylib {
* if "extension" is NULL, a platform-specific default is used
* on success "true" is returned, else "false
*/
- static bool LoadLib(const std::string procname,
- const std::string baselibname,
- const std::string fileext=std::string(""));
+ static bool LoadLib(const std::string&procname,
+ const std::string&baselibname,
+ const std::string&fileext=std::string(""));
static const std::string getDefaultExtension(void);
diff --git a/Gem/develop/include/Gem/Gem/Exception.h b/Gem/develop/include/Gem/Gem/Exception.h
index 8815b0a..8aaedf8 100644
--- a/Gem/develop/include/Gem/Gem/Exception.h
+++ b/Gem/develop/include/Gem/Gem/Exception.h
@@ -41,13 +41,13 @@ class GEM_EXTERN GemException
public:
GemException(void);
GemException(const char*error);
- GemException(const std::string error);
+ GemException(const std::string&error);
virtual ~GemException(void);
virtual const char *what(void) const;
virtual void report(const char*origin=0) const;
private:
- const std::string ErrorString;
+ const std::string&ErrorString;
};
namespace gem {
diff --git a/Gem/develop/include/Gem/Gem/ImageIO.h b/Gem/develop/include/Gem/Gem/ImageIO.h
index 7e71226..8b66e15 100644
--- a/Gem/develop/include/Gem/Gem/ImageIO.h
+++ b/Gem/develop/include/Gem/Gem/ImageIO.h
@@ -48,7 +48,7 @@ namespace gem {
* the loaded image is stored in 'img'
* 'props' holds a list of additional image properties discovered during loading
*/
- static bool sync(const std::string filename,
+ static bool sync(const std::string&filename,
imageStruct&img,
Properties&props);
@@ -97,7 +97,7 @@ namespace gem {
*/
static bool async(callback cb,
void*userdata,
- const std::string filename,
+ const std::string&filename,
id_t&ID
);
@@ -113,7 +113,7 @@ namespace gem {
*/
static bool sync(callback cb,
void*userdata,
- const std::string filename,
+ const std::string&filename,
id_t&ID);
/*
diff --git a/Gem/develop/include/Gem/Gem/Properties.h b/Gem/develop/include/Gem/Gem/Properties.h
index 7ce011d..588fbf3 100644
--- a/Gem/develop/include/Gem/Gem/Properties.h
+++ b/Gem/develop/include/Gem/Gem/Properties.h
@@ -63,7 +63,7 @@ namespace gem
* if the key was in the property-map, return the type of the property
* if no key of the given value exists, return <code>PropertyType::UNSET</code>
*/
- virtual enum PropertyType type(const std::string) const;
+ virtual enum PropertyType type(const std::string&) const;
/* set a property
* e.g.: double w=640; prop.set("width", w);
@@ -92,7 +92,7 @@ namespace gem
/*
* delete a given key from the Properties
*/
- virtual void erase(const std::string);
+ virtual void erase(const std::string&);
/*
* delete all keys from the Properties
*/
diff --git a/Gem/develop/include/Gem/Gem/Settings.h b/Gem/develop/include/Gem/Gem/Settings.h
index e54b9d5..9052982 100644
--- a/Gem/develop/include/Gem/Gem/Settings.h
+++ b/Gem/develop/include/Gem/Gem/Settings.h
@@ -22,13 +22,13 @@ namespace gem { namespace Settings {
void print(void);
void save(void);
- t_atom*get(const std::string key);
- void set(const std::string key, t_atom*value=NULL);
+ t_atom*get(const std::string&key);
+ void set(const std::string&key, t_atom*value=NULL);
- void get(const std::string key, int&value);
- void get(const std::string key, float&value);
- void get(const std::string key, double&value);
- void get(const std::string key, std::string&value);
+ void get(const std::string&key, int&value);
+ void get(const std::string&key, float&value);
+ void get(const std::string&key, double&value);
+ void get(const std::string&key, std::string&value);
std::vector<std::string> keys();
}; };
diff --git a/Gem/develop/include/Gem/RTE/MessageCallbacks.h b/Gem/develop/include/Gem/RTE/MessageCallbacks.h
index b4df71b..79e174e 100644
--- a/Gem/develop/include/Gem/RTE/MessageCallbacks.h
+++ b/Gem/develop/include/Gem/RTE/MessageCallbacks.h
@@ -20,13 +20,13 @@
* CPPEXTERN_MSG (classPtr, "foo", gimmeMess); // A_GIMME
* CPPEXTERN_MSG0(classPtr, "doit", bangMess); // no args
* CPPEXTERN_MSG1(classPtr, "name", nameMess, t_symbol*); // 1 arg (A_SYMBOL)
- * CPPEXTERN_MSG1(classPtr, "title", titleMess, std::string); // 1 arg (A_SYMBOL)
+ * CPPEXTERN_MSG1(classPtr, "title", titleMess, const std::string&); // 1 arg (A_SYMBOL)
* CPPEXTERN_MSG3(classPtr, "values", tripletMess, t_float, t_float, t_float); // 3 args (A_FLOAT)
* }
* void myclass::gimmeMess (t_symbol*s, int argc, t_atom*argv) {;}
* void myclass::bangMess (void) {;}
* void myclass::nameMess (t_symbol*s) {;}
- * void myclass::titleMess (std::string s) {;}
+ * void myclass::titleMess (const std::string&s) {;}
* void myclass::tripletMess(t_float a, t_float b, t_float c) {;}
*/
#ifndef _INCLUDE__GEM_RTE_MESSAGECALLBACKS_H_