Commit fbc059ab authored by Christophe Mutricy's avatar Christophe Mutricy

Qt4: more const

parent c84de2ba
...@@ -794,7 +794,7 @@ void SPrefsPanel::assoDialog() ...@@ -794,7 +794,7 @@ void SPrefsPanel::assoDialog()
listAsso.clear(); listAsso.clear();
} }
void addAsso( QVLCRegistry *qvReg, char *psz_ext ) void addAsso( QVLCRegistry *qvReg, const char *psz_ext )
{ {
std::string s_path( "VLC" ); s_path += psz_ext; std::string s_path( "VLC" ); s_path += psz_ext;
std::string s_path2 = s_path; std::string s_path2 = s_path;
...@@ -833,7 +833,7 @@ void addAsso( QVLCRegistry *qvReg, char *psz_ext ) ...@@ -833,7 +833,7 @@ void addAsso( QVLCRegistry *qvReg, char *psz_ext )
} }
} }
void delAsso( QVLCRegistry *qvReg, char *psz_ext ) void delAsso( QVLCRegistry *qvReg, const char *psz_ext )
{ {
char psz_VLC[] = "VLC"; char psz_VLC[] = "VLC";
char *psz_value = qvReg->ReadRegistryString( psz_ext, "", "" ); char *psz_value = qvReg->ReadRegistryString( psz_ext, "", "" );
......
...@@ -187,7 +187,7 @@ double QVLCRegistry::ReadRegistryDouble( const char *path, const char *valueName ...@@ -187,7 +187,7 @@ double QVLCRegistry::ReadRegistryDouble( const char *path, const char *valueName
return default_value; return default_value;
} }
int QVLCRegistry::DeleteValue( char *path, char *valueName ) int QVLCRegistry::DeleteValue( const char *path, const char *valueName )
{ {
HKEY keyHandle; HKEY keyHandle;
long result; long result;
...@@ -200,7 +200,7 @@ int QVLCRegistry::DeleteValue( char *path, char *valueName ) ...@@ -200,7 +200,7 @@ int QVLCRegistry::DeleteValue( char *path, char *valueName )
return result; return result;
} }
long QVLCRegistry::DeleteKey( char *path, char *keyName ) long QVLCRegistry::DeleteKey( const char *path, const char *keyName )
{ {
HKEY keyHandle; HKEY keyHandle;
long result; long result;
......
...@@ -44,8 +44,8 @@ public: ...@@ -44,8 +44,8 @@ public:
bool RegistryKeyExists( const char *path); bool RegistryKeyExists( const char *path);
bool RegistryValueExists( const char *path, const char *valueName); bool RegistryValueExists( const char *path, const char *valueName);
int DeleteValue( char *path, char *valueName ); int DeleteValue( const char *path, const char *valueName );
long DeleteKey( char *path, char *keyName ); long DeleteKey( const char *path, const char *keyName );
}; };
#endif #endif
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