aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPHistoryController.m4
-rw-r--r--Source/SPTableContent.m2
-rw-r--r--Source/SPTreeNode.m2
3 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m
index ad9e094c..10806aba 100644
--- a/Source/SPHistoryController.m
+++ b/Source/SPHistoryController.m
@@ -563,7 +563,7 @@
NSDictionary *filterSettings = [theEntry objectForKey:@"contentFilter"];
if ([filterSettings objectForKey:@"filterField"]) {
if([filterSettings objectForKey:@"menuLabel"]) {
- theName = [NSString stringWithFormat:NSLocalizedString(@"%@ (Filtered by %@)", @"History item filtered by values label"),
+ theName = [NSMutableString stringWithFormat:NSLocalizedString(@"%@ (Filtered by %@)", @"History item filtered by values label"),
theName, [filterSettings objectForKey:@"menuLabel"]];
}
}
@@ -572,7 +572,7 @@
if ([theEntry objectForKey:@"contentPageNumber"]) {
NSUInteger pageNumber = [[theEntry objectForKey:@"contentPageNumber"] unsignedIntegerValue];
if (pageNumber > 1) {
- theName = [NSString stringWithFormat:NSLocalizedString(@"%@ (Page %lu)", @"History item with page number label"),
+ theName = [NSMutableString stringWithFormat:NSLocalizedString(@"%@ (Page %lu)", @"History item with page number label"),
theName, (unsigned long)pageNumber];
}
}
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 7ffb2f1c..fa7b9a2c 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2901,7 +2901,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
// Use INSERT syntax when creating new rows
if (isEditingNewRow) {
- queryString = [NSString stringWithFormat:@"INSERT INTO %@ (%@) VALUES (%@)",
+ queryString = [NSMutableString stringWithFormat:@"INSERT INTO %@ (%@) VALUES (%@)",
[selectedTable backtickQuotedString], [rowFieldsToSave componentsJoinedAndBacktickQuoted], [rowValuesToSave componentsJoinedByString:@", "]];
// Otherwise use an UPDATE syntax to save only the changed cells - if this point is reached,
diff --git a/Source/SPTreeNode.m b/Source/SPTreeNode.m
index 9d34a588..c0202a2e 100644
--- a/Source/SPTreeNode.m
+++ b/Source/SPTreeNode.m
@@ -235,7 +235,7 @@ static NSString *SPTreeNodeIsGroupKey = @"SPTreeNodeIsGroup";
if ([object isKindOfClass:[SPFavoriteNode class]]) {
- dictionary = [NSDictionary dictionaryWithDictionary:[object nodeFavorite]];
+ dictionary = [NSMutableDictionary dictionaryWithDictionary:[object nodeFavorite]];
}
else if ([object isKindOfClass:[SPGroupNode class]]) {