Revision: 29927
http://sourceforge.net/p/bibdesk/svn/29927
Author: hofman
Date: 2025-12-01 16:32:55 +0000 (Mon, 01 Dec 2025)
Log Message:
-----------
no need to copy
Modified Paths:
--------------
trunk/bibdesk/BDSKTypeManager.m
Modified: trunk/bibdesk/BDSKTypeManager.m
===================================================================
--- trunk/bibdesk/BDSKTypeManager.m 2025-12-01 15:43:25 UTC (rev 29926)
+++ trunk/bibdesk/BDSKTypeManager.m 2025-12-01 16:32:55 UTC (rev 29927)
@@ -145,14 +145,14 @@
NSMutableCharacterSet *tmpSet;
// this set is used for warning the user on manual entry of a citekey;
allows ASCII characters and some math symbols
// arm: up through 1.3.12 we allowed non-ASCII characters in here, but
btparse chokes on them and so does BibTeX. TLC 2nd ed. says that cite keys are
TeX commands, and subject to the same restrictions as such [a-zA-Z0-9], but
this is generally relaxed in the case of BibTeX to include some punctuation.
- tmpSet = [[NSCharacterSet characterSetWithRange:NSMakeRange(32, 126 -
32)] mutableCopy];
+ tmpSet = [NSMutableCharacterSet characterSetWithRange:NSMakeRange(32,
126 - 32)];
[tmpSet removeCharactersInString:@" '\"@,\\#}{~%()="];
[tmpSet invert];
invalidCiteKeyCharSet = [tmpSet copy];
- fragileCiteKeyCharSet = [[NSCharacterSet
characterSetWithCharactersInString:@"&$^"] copy];
+ fragileCiteKeyCharSet = [NSCharacterSet
characterSetWithCharactersInString:@"&$^"];
- tmpSet = [[NSCharacterSet characterSetWithRange:NSMakeRange(
(NSUInteger)'a', 26)] mutableCopy];
+ tmpSet = [NSMutableCharacterSet characterSetWithRange:NSMakeRange(
(NSUInteger)'a', 26)];
[tmpSet addCharactersInRange:NSMakeRange( (NSUInteger)'A', 26)];
[tmpSet addCharactersInRange:NSMakeRange( (NSUInteger)'-', 15)]; //
-./0123456789:;
@@ -160,12 +160,12 @@
strictInvalidCiteKeyCharSet = [[tmpSet invertedSet] copy]; // don't
release this
// this set is used for warning the user on manual entry of a
local-url; allows non-ASCII characters and some math symbols
- invalidLocalUrlCharSet = [[NSCharacterSet
characterSetWithCharactersInString:@":"] copy];
+ invalidLocalUrlCharSet = [NSCharacterSet
characterSetWithCharactersInString:@":"];
// this is used for generated local urls
strictInvalidLocalUrlCharSet = [invalidLocalUrlCharSet copy]; //
don't release this
- tmpSet = [[NSCharacterSet characterSetWithRange:NSMakeRange(1,31)]
mutableCopy];
+ tmpSet = [NSMutableCharacterSet
characterSetWithRange:NSMakeRange(1,31)];
[tmpSet addCharactersInString:@"?<>\\:*|\""];
// this is used for generated local urls, stricted for use of
windoze-compatible file names
@@ -172,7 +172,7 @@
veryStrictInvalidLocalUrlCharSet = [tmpSet copy];
// see the URI specifications for the valid characters
- NSMutableCharacterSet *validSet = [[NSCharacterSet
characterSetWithRange:NSMakeRange( (NSUInteger)'a', 26)] mutableCopy];
+ NSMutableCharacterSet *validSet = [NSMutableCharacterSet
characterSetWithRange:NSMakeRange( (NSUInteger)'a', 26)];
[validSet addCharactersInRange:NSMakeRange( (NSUInteger)'A', 26)];
[validSet addCharactersInRange:NSMakeRange( (NSUInteger)'0', 10)];
[validSet addCharactersInString:@"-._~:/?#[]@!$&'()*+,;="];
@@ -181,13 +181,13 @@
invalidRemoteUrlCharSet = [[validSet invertedSet] copy];
// this is used for generated remote urls
- strictInvalidRemoteUrlCharSet = [invalidRemoteUrlCharSet copy]; //
don't release this
+ strictInvalidRemoteUrlCharSet = invalidRemoteUrlCharSet; // don't
release this
invalidGeneralCharSet = [[NSCharacterSet alloc] init];
strictInvalidGeneralCharSet = [[NSCharacterSet alloc] init];
- separatorCharSet = [[NSCharacterSet
characterSetWithCharactersInString:[[NSUserDefaults standardUserDefaults]
stringForKey:BDSKGroupFieldSeparatorCharactersKey]] copy];
+ separatorCharSet = [NSCharacterSet
characterSetWithCharactersInString:[[NSUserDefaults standardUserDefaults]
stringForKey:BDSKGroupFieldSeparatorCharactersKey]];
}
return self;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit