Bug 1151541, part 3 - Fix leading tabs in xpcom/. r=froydnj

This commit is contained in:
Andrew McCreight 2015-04-09 10:25:05 -07:00
parent e2c2eeb647
commit 2881daa7dd
3 changed files with 22 additions and 21 deletions

View File

@ -37,7 +37,7 @@ MOZ_SERVICE(ServiceWorkerManager, nsIServiceWorkerManager,
MOZ_SERVICE(AsyncShutdown, nsIAsyncShutdownService,
"@mozilla.org/async-shutdown-service;1")
MOZ_SERVICE(UUIDGenerator, nsIUUIDGenerator,
"@mozilla.org/uuid-generator;1");
"@mozilla.org/uuid-generator;1");
#ifdef MOZ_USE_NAMESPACE
namespace mozilla {

View File

@ -11,9 +11,9 @@
/*----------------------------------------------------------------------------
GetLinebreakString
GetLinebreakString
Could make this inline
Could make this inline
----------------------------------------------------------------------------*/
static const char*
GetLinebreakString(nsLinebreakConverter::ELinebreakType aBreakType)
@ -35,9 +35,9 @@ GetLinebreakString(nsLinebreakConverter::ELinebreakType aBreakType)
/*----------------------------------------------------------------------------
AppendLinebreak
AppendLinebreak
Wee inline method to append a line break. Modifies ioDest.
Wee inline method to append a line break. Modifies ioDest.
----------------------------------------------------------------------------*/
template<class T>
void
@ -51,9 +51,9 @@ AppendLinebreak(T*& aIoDest, const char* aLineBreakStr)
}
/*----------------------------------------------------------------------------
CountChars
CountChars
Counts occurrences of breakStr in aSrc
Counts occurrences of breakStr in aSrc
----------------------------------------------------------------------------*/
template<class T>
int32_t
@ -85,9 +85,9 @@ CountLinebreaks(const T* aSrc, int32_t aInLen, const char* aBreakStr)
/*----------------------------------------------------------------------------
ConvertBreaks
ConvertBreaks
ioLen *includes* a terminating null, if any
ioLen *includes* a terminating null, if any
----------------------------------------------------------------------------*/
template<class T>
static T*
@ -270,7 +270,7 @@ ConvertUnknownBreaks(const T* aInSrc, int32_t& aIoLen, const char* aDestBreak)
/*----------------------------------------------------------------------------
ConvertLineBreaks
ConvertLineBreaks
----------------------------------------------------------------------------*/
char*
@ -304,7 +304,7 @@ nsLinebreakConverter::ConvertLineBreaks(const char* aSrc,
/*----------------------------------------------------------------------------
ConvertLineBreaksInSitu
ConvertLineBreaksInSitu
----------------------------------------------------------------------------*/
nsresult
@ -357,7 +357,7 @@ nsLinebreakConverter::ConvertLineBreaksInSitu(char** aIoBuffer,
/*----------------------------------------------------------------------------
ConvertUnicharLineBreaks
ConvertUnicharLineBreaks
----------------------------------------------------------------------------*/
char16_t*
@ -391,7 +391,7 @@ nsLinebreakConverter::ConvertUnicharLineBreaks(const char16_t* aSrc,
/*----------------------------------------------------------------------------
ConvertStringLineBreaks
ConvertStringLineBreaks
----------------------------------------------------------------------------*/
nsresult
@ -442,7 +442,7 @@ nsLinebreakConverter::ConvertUnicharLineBreaksInSitu(
}
/*----------------------------------------------------------------------------
ConvertStringLineBreaks
ConvertStringLineBreaks
----------------------------------------------------------------------------*/
nsresult

View File

@ -15,14 +15,15 @@ namespace TestCRT {
// The return from strcmp etc is only defined to be postive, zero or
// negative. The magnitude of a non-zero return is irrelevant.
int sign(int val) {
if (val == 0)
return 0;
else {
if (val > 0)
return 1;
else
return -1;
if (val == 0) {
return 0;
} else {
if (val > 0) {
return 1;
} else {
return -1;
}
}
}