mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-21 02:41:04 +00:00
* GSWeb.framework/GSWApplication+Defaults.m (GSWAppClassDummy):
Added method declarations to help various compiler versions identify the correct signaure to use. (+[GSWApplication setSessionTimeOutValue:]): Use it. (+[GSWApplication sessionTimeOutValue]); Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20969 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a55b140ff5
commit
1d13e0c715
2 changed files with 18 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-11-26 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* GSWeb.framework/GSWApplication+Defaults.m (GSWAppClassDummy):
|
||||
Added method declarations to help various compiler versions
|
||||
identify the correct signaure to use.
|
||||
(+[GSWApplication setSessionTimeOutValue:]): Use it.
|
||||
(+[GSWApplication sessionTimeOutValue]); Ditto.
|
||||
|
||||
2005-03-22 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
* GSWeb.framework/GSWBrowser.m
|
||||
o fixed double HTML escaping bug (reported by David Ayers)
|
||||
|
|
|
@ -47,12 +47,16 @@ static NSUserDefaults *_userDefaults = nil;
|
|||
The following class does not exist. The declaration is merely used
|
||||
to aid the compiler to find the correct signatures for messages
|
||||
sent to the class and to avoid polluting the compiler output with
|
||||
superfluous warnings.
|
||||
superfluous warnings or actually using incorrect signatures.
|
||||
*/
|
||||
@interface GSWAppClassDummy : NSObject
|
||||
- (NSString *)adaptor;
|
||||
- (NSString *)host;
|
||||
- (NSNumber *)port;
|
||||
- (NSNumber *)sessionTimeOut;
|
||||
- (void)setSessionTimeOut:(NSNumber *)aTimeOut;
|
||||
+ (NSNumber *)sessionTimeOut;
|
||||
+ (void)setSessionTimeOut:(NSNumber *)aTimeOut;
|
||||
@end
|
||||
|
||||
void
|
||||
|
@ -1472,9 +1476,11 @@ static NSNumber *_dflt_sessionTimeOut = nil;
|
|||
//--------------------------------------------------------------------
|
||||
+(void)setSessionTimeOutValue:(NSTimeInterval)aTimeOutValue
|
||||
{
|
||||
id number=nil;
|
||||
LOGClassFnStart();
|
||||
number = [NSNumber numberWithDouble: aTimeOutValue];
|
||||
NSDebugMLLog(@"sessions",@"aTimeOutValue=%f",aTimeOutValue);
|
||||
[self setSessionTimeOut: [NSNumber numberWithDouble: aTimeOutValue]];
|
||||
[(GSWAppClassDummy *)self setSessionTimeOut: number];
|
||||
LOGClassFnStop();
|
||||
};
|
||||
|
||||
|
@ -1483,10 +1489,10 @@ static NSNumber *_dflt_sessionTimeOut = nil;
|
|||
{
|
||||
id sessionTimeOut=nil;
|
||||
LOGClassFnStart();
|
||||
sessionTimeOut=[self sessionTimeOut];
|
||||
sessionTimeOut=[(GSWAppClassDummy *)self sessionTimeOut];
|
||||
NSDebugMLLog(@"sessions",@"sessionTimeOut=%@",sessionTimeOut);
|
||||
LOGClassFnStop();
|
||||
return (NSTimeInterval)[sessionTimeOut doubleValue];
|
||||
return [sessionTimeOut doubleValue];
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue