adium 2628:022465fdad82: As David pointed out, there is no reaso...

commits at adium.im commits at adium.im
Wed Aug 26 00:47:21 UTC 2009


details:	http://hg.adium.im/adium/rev/022465fdad82
revision:	2628:022465fdad82
author:		Peter Hosey <hg at boredzo.org>
date:		Tue Aug 25 17:39:46 2009 -0700

As David pointed out, there is no reason (anymore) why the elements of this array should not be const.

diffs (12 lines):

diff -r 2fceb6b5f009 -r 022465fdad82 Frameworks/AIUtilities Framework/Source/AIStringAdditions.m
--- a/Frameworks/AIUtilities Framework/Source/AIStringAdditions.m	Tue Aug 25 15:03:00 2009 -0400
+++ b/Frameworks/AIUtilities Framework/Source/AIStringAdditions.m	Tue Aug 25 17:39:46 2009 -0700
@@ -32,7 +32,7 @@
 	shellUnsafeNature = (1 << 1), //backslash + !$`"'
 	regexpUnsafeNature = (1 << 2), //backslash + |.*+?{}()$^
 };
-static enum characterNatureMask characterNature[USHRT_MAX+1] = {
+static const enum characterNatureMask characterNature[USHRT_MAX+1] = {
 	['\a'] = whitespaceNature,
 	['\t'] = whitespaceNature,
 	['\n'] = whitespaceNature,




More information about the commits mailing list