mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-23 15:33:43 +00:00
* GSWeb/GSWComponentDefinition.m
* GSWeb/GSWComponentReference.m * GSWeb/GSWContext.m * GSWeb/GSWHTMLDynamicElement.m * GSWeb/GSWHyperlink.m * GSWeb/GSWResourceManager.m * GSWeb/GSWResourceRequestHandler.m get rid of extaneous parentheses on equality tests git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@36245 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1fb5357fd3
commit
ec3794334c
8 changed files with 21 additions and 13 deletions
|
@ -1,6 +1,14 @@
|
|||
2013-03-02 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
* GSWeb/GSWSessionTimeOutManager.h
|
||||
GSWSessionTimeOutManager conforms to NSLocking protocol
|
||||
* GSWeb/GSWComponentDefinition.m
|
||||
* GSWeb/GSWComponentReference.m
|
||||
* GSWeb/GSWContext.m
|
||||
* GSWeb/GSWHTMLDynamicElement.m
|
||||
* GSWeb/GSWHyperlink.m
|
||||
* GSWeb/GSWResourceManager.m
|
||||
* GSWeb/GSWResourceRequestHandler.m
|
||||
get rid of extaneous parentheses on equality tests
|
||||
|
||||
2013-03-02 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
* regenerate configure from configure.ac
|
||||
|
|
|
@ -553,7 +553,7 @@ static GSWContext * TheTemporaryContext;
|
|||
NSDictionary * archive = nil;
|
||||
NSString * encodingName = nil;
|
||||
|
||||
if ((_encoding == 0)) {
|
||||
if (_encoding == 0) {
|
||||
|
||||
_encoding = [GSWMessage defaultEncoding]; // safer, because we may not have a .woo file
|
||||
|
||||
|
@ -565,7 +565,7 @@ static GSWContext * TheTemporaryContext;
|
|||
{
|
||||
_encoding = [GSMimeDocument encodingFromCharset:encodingName];
|
||||
|
||||
if ((_encoding == 0)) {
|
||||
if (_encoding == 0) {
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"%s %@ -- unknown encoding '%@'",__PRETTY_FUNCTION__, _wooPath, encodingName];
|
||||
}
|
||||
|
|
|
@ -43,9 +43,9 @@ RCS_ID("$Id$")
|
|||
-(id)initWithName:(NSString*)aName
|
||||
associations:(NSDictionary*)associations
|
||||
{
|
||||
if ((self==[super initWithName:aName
|
||||
if (self==[super initWithName:aName
|
||||
associations:associations
|
||||
template:nil])) {
|
||||
template:nil]) {
|
||||
|
||||
ASSIGN(_name,aName);
|
||||
ASSIGN(_keyAssociations,[NSMutableDictionary dictionaryWithDictionary:associations]);
|
||||
|
@ -58,8 +58,8 @@ RCS_ID("$Id$")
|
|||
associations:(NSDictionary*)associations
|
||||
template:(GSWElement*)template
|
||||
{
|
||||
if ((self==[self initWithName:aName
|
||||
associations:associations]))
|
||||
if (self==[self initWithName:aName
|
||||
associations:associations])
|
||||
{
|
||||
ASSIGN(_contentElement,template);
|
||||
};
|
||||
|
|
|
@ -2129,7 +2129,7 @@ If none, try request languages
|
|||
|
||||
- (BOOL) secureMode
|
||||
{
|
||||
if ((_secureMode == -2)) {
|
||||
if (_secureMode == -2) {
|
||||
return [self secureRequest];
|
||||
}
|
||||
return ((_secureMode == YES));
|
||||
|
@ -2194,7 +2194,7 @@ If none, try request languages
|
|||
|
||||
- (WOMarkupType) markupType
|
||||
{
|
||||
if ((_markupType == WOUndefinedMarkup))
|
||||
if (_markupType == WOUndefinedMarkup)
|
||||
{
|
||||
GSWComponent* thePage = [self page];
|
||||
if (thePage) {
|
||||
|
|
|
@ -192,7 +192,7 @@ static inline BOOL _needQuote(NSString* str_needQuote)
|
|||
association = [_associations objectForKey: str];
|
||||
if (([association isKindOfClass:[GSWConstantValueAssociation class]]) && ([self escapeHTML] == NO)) {
|
||||
aValue = [association valueInComponent:nil];
|
||||
if ((aValue == nil)) {
|
||||
if (aValue == nil) {
|
||||
s1 = @"";
|
||||
} else {
|
||||
s1 = (NSString*)aValue;
|
||||
|
|
|
@ -266,7 +266,7 @@ static Class NSStringClass = Nil;
|
|||
NSString * str = nil;
|
||||
NSString * path;
|
||||
|
||||
if ((aRequestHandlerPath == nil)) {
|
||||
if (aRequestHandlerPath == nil) {
|
||||
path = @"";
|
||||
} else {
|
||||
path = aRequestHandlerPath;
|
||||
|
|
|
@ -301,7 +301,7 @@ NSMutableDictionary *globalPathCache = nil;
|
|||
NSRange range = [oldPath rangeOfString:@"Resources/WebServer"
|
||||
options:NSBackwardsSearch];
|
||||
|
||||
if ((range.location == NSNotFound)) {
|
||||
if (range.location == NSNotFound) {
|
||||
if (([oldPath hasSuffix:@".wo"] == NO)) {
|
||||
return nil;
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ static NSDictionary * _cachedStringsTable(GSWResourceManager * resmanager, NSStr
|
|||
} END_SYNCHRONIZED;
|
||||
}
|
||||
// we are using a static object so the == is ok here.
|
||||
if ((stringTableDict == (NSDictionary*) [NSNull null]))
|
||||
if (stringTableDict == (NSDictionary*) [NSNull null])
|
||||
{
|
||||
stringTableDict = nil;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ RCS_ID("$Id$")
|
|||
NSString * framework = nil;
|
||||
NSRange range = [uri rangeOfString:@"/"];
|
||||
|
||||
if ((range.location == NSNotFound)) {
|
||||
if (range.location == NSNotFound) {
|
||||
// app wrapper resource
|
||||
framework = nil;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue