Skip to content

Commit

Permalink
refactoring for Xcode 4
Browse files Browse the repository at this point in the history
  • Loading branch information
niltsh committed Apr 19, 2011
1 parent ebeb454 commit c974ff1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UniversalDetector.m
Expand Up @@ -5,7 +5,9 @@ @implementation UniversalDetector

-(id)init
{
if(self=[super init])
self = [super init];

if(self)
{
detectorPtr = AllocUniversalDetector();
charsetName = nil;
Expand Down
2 changes: 2 additions & 0 deletions WrappedUniversalDetector.cpp
Expand Up @@ -58,6 +58,8 @@ class wrappedUniversalDetector:public nsUniversalDetector
case ePureAscii:
confidence=1.0;
return "UTF-8";
default:
break;
}

confidence=0;
Expand Down

0 comments on commit c974ff1

Please sign in to comment.