use pragma once

This commit is contained in:
Daniel Sipka 2015-04-15 23:37:32 +02:00
parent 127609f392
commit ba64f4e541
11 changed files with 11 additions and 44 deletions

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_H_
#define _MSTCH_H_
#pragma once
#include <vector>
#include <map>
@ -37,5 +36,3 @@ namespace mstch {
const std::map<std::string,std::string>& partials =
std::map<std::string,std::string>());
}
#endif // _MSTCH_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_RENDER_CONTEXT_H_
#define _MSTCH_RENDER_CONTEXT_H_
#pragma once
#include <deque>
#include <sstream>
@ -49,5 +48,3 @@ namespace mstch {
std::string delim_end;
};
}
#endif //_MSTCH_RENDER_CONTEXT_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_IN_INVERTED_SECTION_H_
#define _MSTCH_IN_INVERTED_SECTION_H_
#pragma once
#include <sstream>
#include "render_state.hpp"
@ -19,5 +18,3 @@ namespace mstch {
};
}
}
#endif //_MSTCH_IN_INVERTED_SECTION_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_IN_SECTION_H_
#define _MSTCH_IN_SECTION_H_
#pragma once
#include "render_state.hpp"
#include <sstream>
@ -19,5 +18,3 @@ namespace mstch {
};
}
}
#endif //_MSTCH_IN_SECTION_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_OUTSIDE_SECTION_H_
#define _MSTCH_OUTSIDE_SECTION_H_
#pragma once
#include "render_state.hpp"
@ -12,5 +11,3 @@ namespace mstch {
};
}
}
#endif //_MSTCH_OUTSIDE_SECTION_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_RENDER_STATE_H_
#define _MSTCH_RENDER_STATE_H_
#pragma once
#include <memory>
#include "token.hpp"
@ -15,5 +14,3 @@ namespace mstch {
};
}
}
#endif //_MSTCH_RENDER_STATE_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_TOKEN_H_
#define _MSTCH_TOKEN_H_
#pragma once
#include <string>
@ -26,5 +25,3 @@ namespace mstch {
type token_info(char c);
};
}
#endif //_MSTCH_TOKEN_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_UTILS_H_
#define _MSTCH_UTILS_H_
#pragma once
#include <string>
@ -10,5 +9,3 @@ namespace mstch {
citer first_not_ws(criter begin, criter end);
std::string html_escape(std::string str);
}
#endif //_MSTCH_UTILS_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_IS_NODE_EMPTY_H_
#define _MSTCH_IS_NODE_EMPTY_H_
#pragma once
#include <boost/variant/static_visitor.hpp>
#include <boost/blank.hpp>
@ -21,5 +20,3 @@ namespace mstch {
};
}
}
#endif //_MSTCH_IS_NODE_EMPTY_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_RENDER_NODE_H_
#define _MSTCH_RENDER_NODE_H_
#pragma once
#include <boost/variant/static_visitor.hpp>
#include <boost/blank.hpp>
@ -26,5 +25,3 @@ namespace mstch {
};
}
}
#endif //_MSTCH_RENDER_NODE_H_

View file

@ -1,5 +1,4 @@
#ifndef _MSTCH_RENDER_SECTION_H_
#define _MSTCH_RENDER_SECTION_H_
#pragma once
#include <boost/variant/static_visitor.hpp>
#include <boost/blank.hpp>
@ -32,5 +31,3 @@ namespace mstch {
};
}
}
#endif //_MSTCH_RENDER_SECTION_H_