[PATCH] qsettings_win - registry support

Andy Goossens andygoossens at pandora.be
Sun Sep 19 15:12:16 CEST 2004


On Sunday 19 September 2004 13:27, Christian Ehrlicher wrote:
> bool QSettingsPrivate::sysWriteEntry( const QString &key, int data )
> {
(...snip...)
>     long ret = -1;
      ^^^^
>     QString value;
>
>     HKEY hkey = sysd->createKey( key, KEY_SET_VALUE , value , globalScope
> ); if ( hkey ) {
>         long ret = QT_WA_INLINE(
          ^^^^
(...snip...)
>     }
>     return ( ret == ERROR_SUCCESS );
> }

Pay attention to the scope of the 'ret' variable here (and in some other 
functions).

-- 
// Andy Goossens

// Quote of the moment:
Work expands to fill the time available.
		-- Cyril Northcote Parkinson, "The Economist", 1955


More information about the kde-cygwin mailing list