mozilla-bmo1601707.patch
branchfirefox71
changeset 1118 27c3f029180a
child 1119 4c5d44d40a03
equal deleted inserted replaced
1117:d6a688186de0 1118:27c3f029180a
       
     1 diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp
       
     2 --- a/dom/indexedDB/ActorsParent.cpp
       
     3 +++ b/dom/indexedDB/ActorsParent.cpp
       
     4 @@ -24311,9 +24311,9 @@
       
     5    // if we allow overwrite or not. By not allowing overwrite we raise
       
     6    // detectable errors rather than corrupting data.
       
     7    DatabaseConnection::CachedStatement stmt;
       
     8 -  const auto& optReplaceDirective = (!mOverwrite || keyUnset)
       
     9 -                                        ? NS_LITERAL_CSTRING("")
       
    10 -                                        : NS_LITERAL_CSTRING("OR REPLACE ");
       
    11 +  const auto optReplaceDirective = (!mOverwrite || keyUnset)
       
    12 +                                       ? NS_LITERAL_CSTRING("")
       
    13 +                                       : NS_LITERAL_CSTRING("OR REPLACE ");
       
    14    rv = aConnection->GetCachedStatement(
       
    15        NS_LITERAL_CSTRING("INSERT ") + optReplaceDirective +
       
    16            NS_LITERAL_CSTRING("INTO object_data "
       
    17 @@ -25869,7 +25869,7 @@
       
    18      }
       
    19    }
       
    20  
       
    21 -  const auto& comparisonChar =
       
    22 +  const auto comparisonChar =
       
    23        isIncreasingOrder ? NS_LITERAL_CSTRING(">") : NS_LITERAL_CSTRING("<");
       
    24  
       
    25    mCursor->mContinueToQuery =
       
    26 @@ -26076,9 +26076,9 @@
       
    27  
       
    28    const bool usingKeyRange = mOptionalKeyRange.isSome();
       
    29  
       
    30 -  const auto& indexTable = mCursor->mUniqueIndex
       
    31 -                               ? NS_LITERAL_CSTRING("unique_index_data")
       
    32 -                               : NS_LITERAL_CSTRING("index_data");
       
    33 +  const auto indexTable = mCursor->mUniqueIndex
       
    34 +                              ? NS_LITERAL_CSTRING("unique_index_data")
       
    35 +                              : NS_LITERAL_CSTRING("index_data");
       
    36  
       
    37    NS_NAMED_LITERAL_CSTRING(sortColumn, "sort_column");
       
    38  
       
    39 @@ -26198,9 +26198,9 @@
       
    40  
       
    41    const bool usingKeyRange = mOptionalKeyRange.isSome();
       
    42  
       
    43 -  const auto& table = mCursor->mUniqueIndex
       
    44 -                          ? NS_LITERAL_CSTRING("unique_index_data")
       
    45 -                          : NS_LITERAL_CSTRING("index_data");
       
    46 +  const auto table = mCursor->mUniqueIndex
       
    47 +                         ? NS_LITERAL_CSTRING("unique_index_data")
       
    48 +                         : NS_LITERAL_CSTRING("index_data");
       
    49  
       
    50    NS_NAMED_LITERAL_CSTRING(sortColumn, "sort_column");
       
    51  
       
    52