summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/htmlediting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/htmlediting.cpp')
-rw-r--r--WebCore/editing/htmlediting.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/WebCore/editing/htmlediting.cpp b/WebCore/editing/htmlediting.cpp
index c2d1fb5..a8d7702 100644
--- a/WebCore/editing/htmlediting.cpp
+++ b/WebCore/editing/htmlediting.cpp
@@ -367,11 +367,11 @@ int maxDeepOffset(const Node *node)
String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfParagraph, bool endIsEndOfParagraph)
{
- static String twoSpaces(" ");
- static String nbsp("\xa0");
- static String pattern(" \xa0");
+ static DeprecatedString twoSpaces(" ");
+ static DeprecatedString nbsp("\xa0");
+ static DeprecatedString pattern(" \xa0");
- String rebalancedString = string;
+ DeprecatedString rebalancedString = string.deprecatedString();
rebalancedString.replace(noBreakSpace, ' ');
rebalancedString.replace('\n', ' ');
@@ -385,7 +385,7 @@ String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfP
if (endIsEndOfParagraph && rebalancedString[end] == ' ')
rebalancedString.replace(end, 1, nbsp);
- return rebalancedString;
+ return String(rebalancedString);
}
bool isTableStructureNode(const Node *node)