[vlc-devel] commit: Qt4: more const (Christophe Mutricy )
git version control
git at videolan.org
Thu Jan 15 00:33:11 CET 2009
vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Wed Jan 14 23:31:09 2009 +0000| [fbc059ab4984259fcde04c3d4fff66774f11205c] | committer: Christophe Mutricy
Qt4: more const
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fbc059ab4984259fcde04c3d4fff66774f11205c
---
modules/gui/qt4/components/simple_preferences.cpp | 4 ++--
modules/gui/qt4/util/registry.cpp | 4 ++--
modules/gui/qt4/util/registry.hpp | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 4937dd7..7f4d601 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -794,7 +794,7 @@ void SPrefsPanel::assoDialog()
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_path2 = s_path;
@@ -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_value = qvReg->ReadRegistryString( psz_ext, "", "" );
diff --git a/modules/gui/qt4/util/registry.cpp b/modules/gui/qt4/util/registry.cpp
index a05f2d3..263a3bf 100644
--- a/modules/gui/qt4/util/registry.cpp
+++ b/modules/gui/qt4/util/registry.cpp
@@ -187,7 +187,7 @@ double QVLCRegistry::ReadRegistryDouble( const char *path, const char *valueName
return default_value;
}
-int QVLCRegistry::DeleteValue( char *path, char *valueName )
+int QVLCRegistry::DeleteValue( const char *path, const char *valueName )
{
HKEY keyHandle;
long result;
@@ -200,7 +200,7 @@ int QVLCRegistry::DeleteValue( char *path, char *valueName )
return result;
}
-long QVLCRegistry::DeleteKey( char *path, char *keyName )
+long QVLCRegistry::DeleteKey( const char *path, const char *keyName )
{
HKEY keyHandle;
long result;
diff --git a/modules/gui/qt4/util/registry.hpp b/modules/gui/qt4/util/registry.hpp
index 34188b7..361211a 100644
--- a/modules/gui/qt4/util/registry.hpp
+++ b/modules/gui/qt4/util/registry.hpp
@@ -44,8 +44,8 @@ public:
bool RegistryKeyExists( const char *path);
bool RegistryValueExists( const char *path, const char *valueName);
- int DeleteValue( char *path, char *valueName );
- long DeleteKey( char *path, char *keyName );
+ int DeleteValue( const char *path, const char *valueName );
+ long DeleteKey( const char *path, const char *keyName );
};
#endif
More information about the vlc-devel
mailing list