diff options
| -rwxr-xr-x | BuildTools/CheckTabs.py | 2 | ||||
| -rw-r--r-- | SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.cpp | 1 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/BuildTools/CheckTabs.py b/BuildTools/CheckTabs.py index 6c9f60b..2cc1cf7 100755 --- a/BuildTools/CheckTabs.py +++ b/BuildTools/CheckTabs.py @@ -1,41 +1,41 @@  #!/usr/bin/env python  import os, sys  foundExpandedTabs = False  for (path, dirs, files) in os.walk(".") : -	if not "3rdParty" in path : +	if not "3rdParty" in path and not ".sconf" in path :  		for filename in [os.path.join(path, file) for file in files if (file.endswith(".cpp") or file.endswith(".h")) and not "ui_" in file and not "moc_" in file and not "qrc_" in file] :  			file = open(filename, "r")  			contents = []  			contentsChanged = False  			for line in file.readlines() :  				newline = ""  				previousChar = None  				pastInitialSpace = False  				for char in line :  					if not pastInitialSpace :  						if char == ' ' and previousChar == ' ' :  							contentsChanged = True  							previousChar = '\t'  							continue  						pastInitialSpace = (char != ' ')  					if previousChar :  						newline += previousChar  					previousChar = char  				if previousChar :  					newline += previousChar  				contents.append(newline)  			file.close()  			if contentsChanged :  				if len(sys.argv) > 1 and sys.argv[1] == "--fix" :  					print "Fixing tabs in " + filename  					file = open(filename, "w")  					file.write(''.join(contents))  					file.close()  				else :  					foundExpandedTabs = True  					print filename + " contains expanded tabs"  sys.exit(foundExpandedTabs) diff --git a/SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.cpp b/SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.cpp index 2049a4e..90c27bd 100644 --- a/SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.cpp +++ b/SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.cpp @@ -1,19 +1,20 @@  #include "SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.h"  #ifdef HAVE_SPARKLE  #include "SwifTools/AutoUpdater/SparkleAutoUpdater.h"  #else  #include "SwifTools/AutoUpdater/DummyAutoUpdater.h"  #endif  namespace Swift {  AutoUpdater* PlatformAutoUpdaterFactory::createAutoUpdater(const String& appcastURL) {  #ifdef HAVE_SPARKLE  	return new SparkleAutoUpdater(appcastURL);  #else +	(void) appcastURL;  	return new DummyAutoUpdater();  #endif  }  } | 
 Swift
 Swift