From 8e5e248d0d53a20e7a53dc6d329c58f79eb75e6f Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Sun, 6 Jun 2004 03:38:35 +0000 Subject: [PATCH] fixing bustage. --- xpcom/string/public/nsTAString.h | 12 ++++++------ xpcom/string/public/nsTSubstring.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xpcom/string/public/nsTAString.h b/xpcom/string/public/nsTAString.h index 4ce5e791915..33c82ce2678 100644 --- a/xpcom/string/public/nsTAString.h +++ b/xpcom/string/public/nsTAString.h @@ -371,14 +371,14 @@ class nsTAString_CharT // array variable. Use AssignASCII for those. #ifdef NS_DISABLE_LITERAL_TEMPLATE void AssignLiteral( const char* str ) - { return AssignASCII(str); } + { AssignASCII(str); } #else template void AssignLiteral( const char (&str)[N] ) - { return AssignASCII(str, N-1); } + { AssignASCII(str, N-1); } template void AssignLiteral( char (&str)[N] ) - { return AssignASCII(str, N-1); } + { AssignASCII(str, N-1); } #endif // copy-assignment operator. I must define my own if I don't want the compiler to make me one @@ -407,14 +407,14 @@ class nsTAString_CharT // array variable. Use AppendASCII for those. #ifdef NS_DISABLE_LITERAL_TEMPLATE void AppendLiteral( const char* str ) - { return AppendASCII(str); } + { AppendASCII(str); } #else template void AppendLiteral( const char (&str)[N] ) - { return AppendASCII(str, N-1); } + { AppendASCII(str, N-1); } template void AppendLiteral( char (&str)[N] ) - { return AppendASCII(str, N-1); } + { AppendASCII(str, N-1); } #endif self_type& operator+=( const self_type& readable ) { Append(readable); return *this; } diff --git a/xpcom/string/public/nsTSubstring.h b/xpcom/string/public/nsTSubstring.h index 0ca9e8a0c7c..6053198ff0b 100644 --- a/xpcom/string/public/nsTSubstring.h +++ b/xpcom/string/public/nsTSubstring.h @@ -345,14 +345,14 @@ class nsTSubstring_CharT : public nsTAString_CharT // array variable. Use AppendASCII for those. #ifdef NS_DISABLE_LITERAL_TEMPLATE void AppendLiteral( const char* str ) - { return AppendASCII(str); } + { AppendASCII(str); } #else template void AppendLiteral( const char (&str)[N] ) - { return AppendASCII(str, N-1); } + { AppendASCII(str, N-1); } template void AppendLiteral( char (&str)[N] ) - { return AppendASCII(str, N-1); } + { AppendASCII(str, N-1); } #endif self_type& operator+=( char_type c ) { Append(c); return *this; }