[vlc-commits] Qt: constify rootkey member for QVLCRegistry
Jean-Baptiste Kempf
git at videolan.org
Mon Jul 6 18:48:04 CEST 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul 6 18:46:15 2015 +0200| [97d0d537a7f3e027ebeb429fba2e6bceb2abdb41] | committer: Jean-Baptiste Kempf
Qt: constify rootkey member for QVLCRegistry
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97d0d537a7f3e027ebeb429fba2e6bceb2abdb41
---
modules/gui/qt4/util/registry.cpp | 5 ++---
modules/gui/qt4/util/registry.hpp | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/util/registry.cpp b/modules/gui/qt4/util/registry.cpp
index 2484d89..496a797 100644
--- a/modules/gui/qt4/util/registry.cpp
+++ b/modules/gui/qt4/util/registry.cpp
@@ -31,9 +31,8 @@
#include "registry.hpp"
QVLCRegistry::QVLCRegistry( HKEY rootKey )
-{
- m_RootKey = rootKey;
-}
+ : m_RootKey( rootKey )
+{}
bool QVLCRegistry::RegistryKeyExists( const char *path )
{
diff --git a/modules/gui/qt4/util/registry.hpp b/modules/gui/qt4/util/registry.hpp
index c48854d..40b43d6 100644
--- a/modules/gui/qt4/util/registry.hpp
+++ b/modules/gui/qt4/util/registry.hpp
@@ -28,7 +28,7 @@
class QVLCRegistry
{
private:
- HKEY m_RootKey;
+ const HKEY m_RootKey;
char m_pathBuffer[256];
public:
QVLCRegistry(HKEY rootKey);
More information about the vlc-commits
mailing list