[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-cygwin
Subject:    Re: [PATCH] qsettings_win - registry support
From:       Andy Goossens <andygoossens () pandora ! be>
Date:       2004-09-19 13:12:16
Message-ID: 200409191512.16815.andygoossens () pandora ! be
[Download RAW message or body]

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
_______________________________________________
kde-cygwin mailing list
kde-cygwin@kde.org
https://mail.kde.org/mailman/listinfo/kde-cygwin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic