mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
6bc92def07
Currently, editor code uses following style (or similar style) in a lot of places: if (foo) { } else { } This patch fixes this as conforming to our coding rules, i.e., it becomes: if (foo) { } else { } Additionally, this fixes other odd control statements in the files which include above issue because it's difficult to find following issues with searching the files: * if (foo) bar; * if (foo) { bar; } * if (foo) bar; Finally, if it becomes much simpler than current code, this patch rewrites existing code with "early return style". But this case is only a few places because this is risky. MozReview-Commit-ID: 2Gs26goWXrF --HG-- extra : rebase_source : 603f9003a3566b3203bdeb27dc73ac33502d2853 |
||
---|---|---|
.. | ||
tests | ||
moz.build | ||
nsITransaction.idl | ||
nsITransactionList.idl | ||
nsITransactionListener.idl | ||
nsITransactionManager.idl | ||
nsTransactionItem.cpp | ||
nsTransactionItem.h | ||
nsTransactionList.cpp | ||
nsTransactionList.h | ||
nsTransactionManager.cpp | ||
nsTransactionManager.h | ||
nsTransactionManagerCID.h | ||
nsTransactionManagerFactory.cpp | ||
nsTransactionStack.cpp | ||
nsTransactionStack.h |