Commit b2c2ef0a authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

use "const std::string&" in plugins

parent 50f05e26
......@@ -48,7 +48,7 @@ class GEM_EXPORT filmAVFoundation : public film
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -107,7 +107,7 @@ void filmAVI :: close(void)
// open the file
//
/////////////////////////////////////////////////////////
bool filmAVI :: open(const std::string filename, const gem::Properties&wantProps)
bool filmAVI :: open(const std::string&filename, const gem::Properties&wantProps)
{
AVISTREAMINFO streaminfo;
long lSize = 0; // in bytes
......
......@@ -47,7 +47,7 @@ class GEM_EXPORT filmAVI : public film {
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -70,7 +70,7 @@ void filmAVIPLAY :: close(void)
// open the file
//
/////////////////////////////////////////////////////////
bool filmAVIPLAY :: open(const std::string filename, const gem::Properties&wantProps)
bool filmAVIPLAY :: open(const std::string&filename, const gem::Properties&wantProps)
{
double d;
if(wantProps.get("colorspace", d) && d>0) {
......
......@@ -71,7 +71,7 @@ class GEM_EXPORT filmAVIPLAY : public film {
#ifdef HAVE_LIBAVIPLAY
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -244,7 +244,7 @@ void filmDS :: close(void)
// open the file
//
/////////////////////////////////////////////////////////
bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
bool filmDS :: open(const std::string&filename, const gem::Properties&wantProps)
{
WCHAR WideFileName[MAXPDSTRING];
HRESULT RetVal;
......
......@@ -52,7 +52,7 @@ class GEM_EXPORT filmDS : public film {
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -244,7 +244,7 @@ void filmDS :: close(void)
// open the file
//
/////////////////////////////////////////////////////////
bool filmDS :: open(const std::string filename, const gem::Properties&wantProps)
bool filmDS :: open(const std::string&filename, const gem::Properties&wantProps)
{
WCHAR WideFileName[MAXPDSTRING];
HRESULT RetVal;
......
......@@ -52,7 +52,7 @@ class GEM_EXPORT filmDS : public film {
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -74,7 +74,7 @@ void filmDarwin :: close(void)
// open the file
//
/////////////////////////////////////////////////////////
bool filmDarwin :: open(const std::string filename, const gem::Properties&wantProps)
bool filmDarwin :: open(const std::string&filename, const gem::Properties&wantProps)
{
double d;
if(wantProps.get("colorspace", d) && d>0) {
......
......@@ -57,7 +57,7 @@ class GEM_EXPORT filmDarwin : public film {
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -119,7 +119,7 @@ bool filmGMERLIN :: isThreadable(void) {
// really open the file !
//
/////////////////////////////////////////////////////////
bool filmGMERLIN :: open(const std::string sfilename, const gem::Properties&wantProps)
bool filmGMERLIN :: open(const std::string&sfilename, const gem::Properties&wantProps)
{
close();
......
......@@ -63,7 +63,7 @@ class GEM_EXPORT filmGMERLIN : public film {
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -67,7 +67,7 @@ void filmMPEG1 :: close(void)
// really open the file ! (OS dependent)
//
/////////////////////////////////////////////////////////
bool filmMPEG1 :: open(const std::string filename, int format)
bool filmMPEG1 :: open(const std::string&filename, int format)
{
if (format>0)m_wantedFormat=format;
if (!(m_streamfile = fopen (filename.c_str(), "rb")))return false;
......
......@@ -48,7 +48,7 @@ class GEM_EXPORT filmMPEG1 : public film {
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -74,7 +74,7 @@ void filmMPEG3 :: close(void)
// really open the file ! (OS dependent)
//
/////////////////////////////////////////////////////////
bool filmMPEG3 :: open(const std::string filename, const gem::Properties&wantProps)
bool filmMPEG3 :: open(const std::string&filename, const gem::Properties&wantProps)
{
char*cfilename=const_cast<char*>(filename.c_str());
if (mpeg3_check_sig(cfilename)){/* ok, this is mpeg(3) */
......
......@@ -50,7 +50,7 @@ class GEM_EXPORT filmMPEG3 : public film {
#ifdef HAVE_LIBMPEG3
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -121,7 +121,7 @@ void filmQT :: close(void)
// m_srcGWorld = NULL;
}
bool filmQT :: open(const std::string filename, const gem::Properties&wantProps) {
bool filmQT :: open(const std::string&filename, const gem::Properties&wantProps) {
FSSpec theFSSpec;
OSErr err = noErr;
Rect m_srcRect;
......
......@@ -60,7 +60,7 @@ class GEM_EXPORT filmQT : public film
//////////
// open a movie up
virtual bool open(const std::string filename, const gem::Properties&);
virtual bool open(const std::string&filename, const gem::Properties&);
//////////
// close the movie file
virtual void close(void);
......
......@@ -70,7 +70,7 @@ void filmQT4L :: close(void)
// really open the file ! (OS dependent)
//
/////////////////////////////////////////////////////////
bool filmQT4L :: open(const std::string filename, const gem::Properties&wantProps)
bool filmQT4L :: open(const std::string&filename, const gem::Properties&wantProps)
{
int wantedFormat=GL_RGBA;
double d;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment