Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows. - nsSubstring --> nsAString - nsCSubstring --> nsACString
This commit is contained in:
@@ -225,7 +225,7 @@ LogMessageWithContext(FileLocation& aFile,
|
||||
* @return Whether the flag was handled.
|
||||
*/
|
||||
static bool
|
||||
CheckFlag(const nsSubstring& aFlag, const nsSubstring& aData, bool& aResult)
|
||||
CheckFlag(const nsAString& aFlag, const nsAString& aData, bool& aResult)
|
||||
{
|
||||
if (!StringBeginsWith(aData, aFlag)) {
|
||||
return false;
|
||||
@@ -284,8 +284,8 @@ enum TriState
|
||||
* @return Whether the flag was handled.
|
||||
*/
|
||||
static bool
|
||||
CheckStringFlag(const nsSubstring& aFlag, const nsSubstring& aData,
|
||||
const nsSubstring& aValue, TriState& aResult)
|
||||
CheckStringFlag(const nsAString& aFlag, const nsAString& aData,
|
||||
const nsAString& aValue, TriState& aResult)
|
||||
{
|
||||
if (aData.Length() < aFlag.Length() + 1) {
|
||||
return false;
|
||||
@@ -320,8 +320,8 @@ CheckStringFlag(const nsSubstring& aFlag, const nsSubstring& aData,
|
||||
}
|
||||
|
||||
static bool
|
||||
CheckOsFlag(const nsSubstring& aFlag, const nsSubstring& aData,
|
||||
const nsSubstring& aValue, TriState& aResult)
|
||||
CheckOsFlag(const nsAString& aFlag, const nsAString& aData,
|
||||
const nsAString& aValue, TriState& aResult)
|
||||
{
|
||||
bool result = CheckStringFlag(aFlag, aData, aValue, aResult);
|
||||
#if defined(XP_UNIX) && !defined(XP_DARWIN) && !defined(ANDROID)
|
||||
|
||||
Reference in New Issue
Block a user