From 64d4a9e24039d98dbcc9f50a0c40c19eaf5b3aac Mon Sep 17 00:00:00 2001 From: Drake Arconis Date: Sat, 1 Mar 2014 18:00:59 -0500 Subject: [PATCH] Add missing header guards --- indra/newview/chatbar_as_cmdline.h | 5 ++++- indra/newview/generichandlers.h | 5 +++++ indra/newview/jcfloaterareasearch.h | 5 +++++ indra/newview/lggdicdownload.h | 3 +++ indra/newview/llfloateravatarlist.h | 6 ++++++ indra/newview/llfloatermessagelog.h | 5 +++++ indra/newview/llviewerobjectbackup.h | 4 ++++ indra/newview/llwlhandlers.h | 1 - indra/newview/shfloatermediaticker.h | 4 ++++ 9 files changed, 36 insertions(+), 2 deletions(-) diff --git a/indra/newview/chatbar_as_cmdline.h b/indra/newview/chatbar_as_cmdline.h index 3e1d37532..3a7de8140 100644 --- a/indra/newview/chatbar_as_cmdline.h +++ b/indra/newview/chatbar_as_cmdline.h @@ -29,8 +29,11 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#include "llviewerprecompiledheaders.h" +#ifndef MS_CHATBARCMDLINE_H +#define MS_CHATBARCMDLINE_H #include "llchatbar.h" bool cmd_line_chat(std::string revised_text, EChatType type); + +#endif \ No newline at end of file diff --git a/indra/newview/generichandlers.h b/indra/newview/generichandlers.h index 2a1210b57..456d9aa53 100644 --- a/indra/newview/generichandlers.h +++ b/indra/newview/generichandlers.h @@ -22,6 +22,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef SG_GENERICHANDLERS_H +#define SG_GENERICHANDLERS_H + class GenericHandlers { public: @@ -29,3 +32,5 @@ public: }; extern GenericHandlers *gGenericHandlers; + +#endif // SG_GENERIC_HANDLERS \ No newline at end of file diff --git a/indra/newview/jcfloaterareasearch.h b/indra/newview/jcfloaterareasearch.h index abf2bd592..71cd1c7af 100644 --- a/indra/newview/jcfloaterareasearch.h +++ b/indra/newview/jcfloaterareasearch.h @@ -31,6 +31,9 @@ * Modified, debugged, optimized and improved by Henri Beauchamp Feb 2010. */ +#ifndef JC_FLOATERAREASEARCH_H +#define JC_FLOATERAREASEARCH_H + #include "llfloater.h" #include "lluuid.h" #include "llstring.h" @@ -90,3 +93,5 @@ private: std::string mFilterStrings[LIST_OBJECT_COUNT]; }; + +#endif \ No newline at end of file diff --git a/indra/newview/lggdicdownload.h b/indra/newview/lggdicdownload.h index 75f3053e9..d9edb8deb 100644 --- a/indra/newview/lggdicdownload.h +++ b/indra/newview/lggdicdownload.h @@ -28,6 +28,8 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef LGG_DICDOWNLOAD_H +#define LGG_DICDOWNLOAD_H class LggDicDownload { @@ -35,3 +37,4 @@ class LggDicDownload static void show( BOOL showw , std::vector shortNames, std::vector longNames, void * data); }; +#endif \ No newline at end of file diff --git a/indra/newview/llfloateravatarlist.h b/indra/newview/llfloateravatarlist.h index 57eb980dd..f223e626b 100644 --- a/indra/newview/llfloateravatarlist.h +++ b/indra/newview/llfloateravatarlist.h @@ -10,6 +10,10 @@ // Copyright: See COPYING file that comes with this distribution // // + +#ifndef LL_LLFLOATERAVATARLIST_H +#define LL_LLFLOATERAVATARLIST_H + #include "llavatarname.h" #include "llavatarpropertiesprocessor.h" #include "llfloater.h" @@ -373,3 +377,5 @@ private: */ LLUUID mFocusedAvatar; }; + +#endif \ No newline at end of file diff --git a/indra/newview/llfloatermessagelog.h b/indra/newview/llfloatermessagelog.h index 1fa01c5af..a17026233 100644 --- a/indra/newview/llfloatermessagelog.h +++ b/indra/newview/llfloatermessagelog.h @@ -1,3 +1,6 @@ +#ifndef LL_LLFLOATERMESSAGELOG_H +#define LL_LLFLOATERMESSAGELOG_H + // #include "llfloater.h" #include "llmessagelog.h" @@ -94,3 +97,5 @@ public: static void onClickFilterMenu(void* user_data); }; // + +#endif \ No newline at end of file diff --git a/indra/newview/llviewerobjectbackup.h b/indra/newview/llviewerobjectbackup.h index 27ae4f2f9..ddf4f021f 100644 --- a/indra/newview/llviewerobjectbackup.h +++ b/indra/newview/llviewerobjectbackup.h @@ -27,6 +27,9 @@ * $/LicenseInfo$ */ +#ifndef LL_LLVIEWEROBJECTBACKUP_H +#define LL_LLVIEWEROBJECTBACKUP_H + #include "llviewerinventory.h" enum export_states { @@ -179,3 +182,4 @@ private: LLQuaternion mAgentRot; }; +#endif \ No newline at end of file diff --git a/indra/newview/llwlhandlers.h b/indra/newview/llwlhandlers.h index 969e188b6..cba1088f2 100644 --- a/indra/newview/llwlhandlers.h +++ b/indra/newview/llwlhandlers.h @@ -33,7 +33,6 @@ #ifndef LL_LLWLHANDLERS_H #define LL_LLWLHANDLERS_H -#include "llviewerprecompiledheaders.h" #include "llhttpclient.h" class AIHTTPTimeoutPolicy; diff --git a/indra/newview/shfloatermediaticker.h b/indra/newview/shfloatermediaticker.h index 4668f33bd..e5d1b968a 100644 --- a/indra/newview/shfloatermediaticker.h +++ b/indra/newview/shfloatermediaticker.h @@ -1,3 +1,6 @@ +#ifndef SH_SHFLOATERMEDIATICKER_H +#define SH_SHFLOATERMEDIATICKER_H + #include "llfloater.h" class LLIconCtrl; @@ -56,3 +59,4 @@ private: BOOL handle_ticker_enabled(void *); void handle_ticker_toggle(void *); +#endif