summaryrefslogtreecommitdiff
path: root/src/emscripten-optimizer
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-11-29 12:51:40 -0800
committerGitHub <noreply@github.com>2018-11-29 12:51:40 -0800
commit5274d943ec65866089f6764af89205d003a15078 (patch)
tree124408fcd21374fb9ca22cef39d0378002161480 /src/emscripten-optimizer
parent0b425638bdafe7be7ed914943de931b491881e23 (diff)
downloadbinaryen-5274d943ec65866089f6764af89205d003a15078.tar.gz
binaryen-5274d943ec65866089f6764af89205d003a15078.tar.bz2
binaryen-5274d943ec65866089f6764af89205d003a15078.zip
standardize on 'template<' over 'template <' (i.e., remove a space) (#1782)
Diffstat (limited to 'src/emscripten-optimizer')
-rw-r--r--src/emscripten-optimizer/istring.h4
-rw-r--r--src/emscripten-optimizer/simple_ast.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/emscripten-optimizer/istring.h b/src/emscripten-optimizer/istring.h
index 467ae682d..87da87473 100644
--- a/src/emscripten-optimizer/istring.h
+++ b/src/emscripten-optimizer/istring.h
@@ -157,13 +157,13 @@ struct IString {
namespace std {
-template <> struct hash<cashew::IString> : public unary_function<cashew::IString, size_t> {
+template<> struct hash<cashew::IString> : public unary_function<cashew::IString, size_t> {
size_t operator()(const cashew::IString& str) const {
return std::hash<size_t>{}(size_t(str.str));
}
};
-template <> struct equal_to<cashew::IString> : public binary_function<cashew::IString, cashew::IString, bool> {
+template<> struct equal_to<cashew::IString> : public binary_function<cashew::IString, cashew::IString, bool> {
bool operator()(const cashew::IString& x, const cashew::IString& y) const {
return x == y;
}
diff --git a/src/emscripten-optimizer/simple_ast.cpp b/src/emscripten-optimizer/simple_ast.cpp
index 75685f80e..b3a3cae84 100644
--- a/src/emscripten-optimizer/simple_ast.cpp
+++ b/src/emscripten-optimizer/simple_ast.cpp
@@ -195,7 +195,7 @@ struct TraverseInfo {
int index;
};
-template <class T, int init>
+template<class T, int init>
struct StackedStack { // a stack, on the stack
T stackStorage[init];
T* storage;