aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorAleric Inglewood2010-11-07 18:38:46 +0100
committerAleric Inglewood2010-11-07 18:38:46 +0100
commit38d4ef2f26545c630fe80e7edc59b0a77641938a (patch)
tree9d2be8c4bd541e17c7ec83bcb5314b208c443715 /linden/indra
parentIMP-692: SNOW-713: Global objects in libllcommon duplicated in plugins (diff)
downloadmeta-impy-38d4ef2f26545c630fe80e7edc59b0a77641938a.zip
meta-impy-38d4ef2f26545c630fe80e7edc59b0a77641938a.tar.gz
meta-impy-38d4ef2f26545c630fe80e7edc59b0a77641938a.tar.bz2
meta-impy-38d4ef2f26545c630fe80e7edc59b0a77641938a.tar.xz
IMP-692: SNOW-713: Fixed compile bug fixes.
Changes: * Added changes from snowglobe 1.5 to indra/llcommon/llstring.h (compile errors as a result of a missing include, but I copied everything else too). * Added #include "linden_common.h" to emeraldboobutils.cpp. Really it's one the header files that needed that, but that's how this header works: every source file should include it as first header anyway, then there is no need for other headers to do that. * Renamed LLPanelRegionOpenSettingsInfo::sendUpdate(void*) to LLPanelRegionOpenSettingsInfo::onClickOrs because it was hiding a virtual function (BOOL sendUpdate(void)). * Made cutToClipboard more equal to copyToClipboard (was also hiding a virtual function). * Install libllcommon.so in lib64 on Linux_x86_64, instead of lib.
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/llcommon/llstring.h25
-rw-r--r--linden/indra/newview/emeraldboobutils.cpp1
-rw-r--r--linden/indra/newview/llfloaterregioninfo.cpp6
-rw-r--r--linden/indra/newview/llfloaterregioninfo.h2
-rw-r--r--linden/indra/newview/llfolderview.h2
-rw-r--r--linden/indra/newview/llinventorybridge.h2
-rw-r--r--linden/indra/newview/llpanelinventory.cpp5
-rwxr-xr-xlinden/indra/newview/viewer_manifest.py10
8 files changed, 36 insertions, 17 deletions
diff --git a/linden/indra/llcommon/llstring.h b/linden/indra/llcommon/llstring.h
index 3f2c8d8..44f5f07 100644
--- a/linden/indra/llcommon/llstring.h
+++ b/linden/indra/llcommon/llstring.h
@@ -34,12 +34,13 @@
34#define LL_LLSTRING_H 34#define LL_LLSTRING_H
35 35
36#include <string> 36#include <string>
37#include <cstdio>
38#include <algorithm>
37 39
38#if LL_LINUX || LL_SOLARIS 40#if LL_LINUX || LL_SOLARIS
39#include <wctype.h> 41#include <wctype.h>
40#include <wchar.h> 42#include <wchar.h>
41#endif 43#endif
42#include "linden_common.h"
43 44
44#include <string.h> 45#include <string.h>
45 46
@@ -173,6 +174,8 @@ public:
173 174
174 static S32 collate(const char* a, const char* b) { return strcoll(a, b); } 175 static S32 collate(const char* a, const char* b) { return strcoll(a, b); }
175 static S32 collate(const llwchar* a, const llwchar* b); 176 static S32 collate(const llwchar* a, const llwchar* b);
177
178 static bool isHexString(const std::string& str);
176}; 179};
177 180
178/** 181/**
@@ -236,7 +239,8 @@ public:
236 static void replaceTabsWithSpaces( std::basic_string<T>& string, size_type spaces_per_tab ); 239 static void replaceTabsWithSpaces( std::basic_string<T>& string, size_type spaces_per_tab );
237 static void replaceNonstandardASCII( std::basic_string<T>& string, T replacement ); 240 static void replaceNonstandardASCII( std::basic_string<T>& string, T replacement );
238 static void replaceChar( std::basic_string<T>& string, T target, T replacement ); 241 static void replaceChar( std::basic_string<T>& string, T target, T replacement );
239 242 static void replaceString( std::basic_string<T>& string, std::basic_string<T> target, std::basic_string<T> replacement );
243
240 static BOOL containsNonprintable(const std::basic_string<T>& string); 244 static BOOL containsNonprintable(const std::basic_string<T>& string);
241 static void stripNonprintable(std::basic_string<T>& string); 245 static void stripNonprintable(std::basic_string<T>& string);
242 246
@@ -908,11 +912,22 @@ template<class T>
908void LLStringUtilBase<T>::replaceChar( std::basic_string<T>& string, T target, T replacement ) 912void LLStringUtilBase<T>::replaceChar( std::basic_string<T>& string, T target, T replacement )
909{ 913{
910 size_type found_pos = 0; 914 size_type found_pos = 0;
911 for (found_pos = string.find(target, found_pos); 915 while( (found_pos = string.find(target, found_pos)) != std::basic_string<T>::npos )
912 found_pos != std::basic_string<T>::npos;
913 found_pos = string.find(target, found_pos))
914 { 916 {
915 string[found_pos] = replacement; 917 string[found_pos] = replacement;
918 found_pos++; // avoid infinite defeat if target == replacement
919 }
920}
921
922//static
923template<class T>
924void LLStringUtilBase<T>::replaceString( std::basic_string<T>& string, std::basic_string<T> target, std::basic_string<T> replacement )
925{
926 size_type found_pos = 0;
927 while( (found_pos = string.find(target, found_pos)) != std::basic_string<T>::npos )
928 {
929 string.replace( found_pos, target.length(), replacement );
930 found_pos += replacement.length(); // avoid infinite defeat if replacement contains target
916 } 931 }
917} 932}
918 933
diff --git a/linden/indra/newview/emeraldboobutils.cpp b/linden/indra/newview/emeraldboobutils.cpp
index f68d6a7..f440940 100644
--- a/linden/indra/newview/emeraldboobutils.cpp
+++ b/linden/indra/newview/emeraldboobutils.cpp
@@ -1,3 +1,4 @@
1#include "linden_common.h"
1#include "emeraldboobutils.h" 2#include "emeraldboobutils.h"
2 3
3std::ostream &operator<<(std::ostream &os, const EmeraldGlobalBoobConfig &v) 4std::ostream &operator<<(std::ostream &os, const EmeraldGlobalBoobConfig &v)
diff --git a/linden/indra/newview/llfloaterregioninfo.cpp b/linden/indra/newview/llfloaterregioninfo.cpp
index 8ae3fa2..d4ffe22 100644
--- a/linden/indra/newview/llfloaterregioninfo.cpp
+++ b/linden/indra/newview/llfloaterregioninfo.cpp
@@ -908,7 +908,7 @@ BOOL LLPanelRegionOpenSettingsInfo::postBuild()
908 initHelpBtn("show_tags_help", "HelpShowTags"); 908 initHelpBtn("show_tags_help", "HelpShowTags");
909 initHelpBtn("allow_parcel_windlight_help", "HelpAllowParcelWindLight"); 909 initHelpBtn("allow_parcel_windlight_help", "HelpAllowParcelWindLight");
910 910
911 childSetAction("apply_ors_btn", sendUpdate, this); 911 childSetAction("apply_ors_btn", onClickOrs, this);
912 912
913 refreshFromRegion(gAgent.getRegion()); 913 refreshFromRegion(gAgent.getRegion());
914 914
@@ -926,12 +926,12 @@ BOOL LLPanelRegionOpenSettingsInfo::postBuild()
926// strings[7] = restrict pushobject 926// strings[7] = restrict pushobject
927// strings[8] = 'Y' - allow parcel subdivide, 'N' - not 927// strings[8] = 'Y' - allow parcel subdivide, 'N' - not
928// strings[9] = 'Y' - block parcel search, 'N' - allow 928// strings[9] = 'Y' - block parcel search, 'N' - allow
929void LLPanelRegionOpenSettingsInfo::sendUpdate(void* userdata) 929void LLPanelRegionOpenSettingsInfo::onClickOrs(void* userdata)
930{ 930{
931 LLPanelRegionOpenSettingsInfo* self; 931 LLPanelRegionOpenSettingsInfo* self;
932 self = (LLPanelRegionOpenSettingsInfo*)userdata; 932 self = (LLPanelRegionOpenSettingsInfo*)userdata;
933 933
934 llinfos << "LLPanelRegionOpenSettingsInfo::sendUpdate()" << llendl; 934 llinfos << "LLPanelRegionOpenSettingsInfo::onClickOrs()" << llendl;
935 935
936 LLSD body; 936 LLSD body;
937 std::string url = gAgent.getRegion()->getCapability("DispatchOpenRegionSettings"); 937 std::string url = gAgent.getRegion()->getCapability("DispatchOpenRegionSettings");
diff --git a/linden/indra/newview/llfloaterregioninfo.h b/linden/indra/newview/llfloaterregioninfo.h
index ee01c7c..ae0c993 100644
--- a/linden/indra/newview/llfloaterregioninfo.h
+++ b/linden/indra/newview/llfloaterregioninfo.h
@@ -188,7 +188,7 @@ public:
188 virtual BOOL postBuild(); 188 virtual BOOL postBuild();
189 189
190protected: 190protected:
191 static void sendUpdate(void* userdata); 191 static void onClickOrs(void* userdata);
192}; 192};
193 193
194///////////////////////////////////////////////////////////////////////////// 194/////////////////////////////////////////////////////////////////////////////
diff --git a/linden/indra/newview/llfolderview.h b/linden/indra/newview/llfolderview.h
index 9fad72e..40da669 100644
--- a/linden/indra/newview/llfolderview.h
+++ b/linden/indra/newview/llfolderview.h
@@ -97,7 +97,7 @@ public:
97 virtual void move( LLFolderViewEventListener* parent_listener ) = 0; 97 virtual void move( LLFolderViewEventListener* parent_listener ) = 0;
98 virtual BOOL isItemCopyable() const = 0; 98 virtual BOOL isItemCopyable() const = 0;
99 virtual BOOL copyToClipboard() const = 0; 99 virtual BOOL copyToClipboard() const = 0;
100 virtual void cutToClipboard() = 0; 100 virtual BOOL cutToClipboard() const = 0;
101 virtual BOOL isClipboardPasteable() const = 0; 101 virtual BOOL isClipboardPasteable() const = 0;
102 virtual void pasteFromClipboard() = 0; 102 virtual void pasteFromClipboard() = 0;
103 virtual void buildContextMenu(LLMenuGL& menu, U32 flags) = 0; 103 virtual void buildContextMenu(LLMenuGL& menu, U32 flags) = 0;
diff --git a/linden/indra/newview/llinventorybridge.h b/linden/indra/newview/llinventorybridge.h
index 2004678..5a53aa5 100644
--- a/linden/indra/newview/llinventorybridge.h
+++ b/linden/indra/newview/llinventorybridge.h
@@ -221,7 +221,7 @@ public:
221 virtual void move(LLFolderViewEventListener* new_parent_bridge) {} 221 virtual void move(LLFolderViewEventListener* new_parent_bridge) {}
222 virtual BOOL isItemCopyable() const { return FALSE; } 222 virtual BOOL isItemCopyable() const { return FALSE; }
223 virtual BOOL copyToClipboard() const { return FALSE; } 223 virtual BOOL copyToClipboard() const { return FALSE; }
224 virtual void cutToClipboard() {} 224 virtual BOOL cutToClipboard() const { return FALSE; }
225 virtual BOOL isClipboardPasteable() const; 225 virtual BOOL isClipboardPasteable() const;
226 virtual void pasteFromClipboard() {} 226 virtual void pasteFromClipboard() {}
227 void getClipboardEntries(bool show_asset_id, std::vector<std::string> &items, 227 void getClipboardEntries(bool show_asset_id, std::vector<std::string> &items,
diff --git a/linden/indra/newview/llpanelinventory.cpp b/linden/indra/newview/llpanelinventory.cpp
index 9cd2759..277ab15 100644
--- a/linden/indra/newview/llpanelinventory.cpp
+++ b/linden/indra/newview/llpanelinventory.cpp
@@ -145,7 +145,7 @@ public:
145 virtual void move(LLFolderViewEventListener* parent_listener); 145 virtual void move(LLFolderViewEventListener* parent_listener);
146 virtual BOOL isItemCopyable() const; 146 virtual BOOL isItemCopyable() const;
147 virtual BOOL copyToClipboard() const; 147 virtual BOOL copyToClipboard() const;
148 virtual void cutToClipboard(); 148 virtual BOOL cutToClipboard() const;
149 virtual BOOL isClipboardPasteable() const; 149 virtual BOOL isClipboardPasteable() const;
150 virtual void pasteFromClipboard(); 150 virtual void pasteFromClipboard();
151 virtual void buildContextMenu(LLMenuGL& menu, U32 flags); 151 virtual void buildContextMenu(LLMenuGL& menu, U32 flags);
@@ -594,8 +594,9 @@ BOOL LLTaskInvFVBridge::copyToClipboard() const
594 return FALSE; 594 return FALSE;
595} 595}
596 596
597void LLTaskInvFVBridge::cutToClipboard() 597BOOL LLTaskInvFVBridge::cutToClipboard() const
598{ 598{
599 return FALSE;
599} 600}
600 601
601BOOL LLTaskInvFVBridge::isClipboardPasteable() const 602BOOL LLTaskInvFVBridge::isClipboardPasteable() const
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py
index a93e058..f631d1f 100755
--- a/linden/indra/newview/viewer_manifest.py
+++ b/linden/indra/newview/viewer_manifest.py
@@ -228,7 +228,7 @@ class WindowsManifest(ViewerManifest):
228 self.path("LICENSE-libraries.txt") 228 self.path("LICENSE-libraries.txt")
229 self.end_prefix("../..") 229 self.end_prefix("../..")
230 230
231 231
232 self.path("imprudence.url") 232 self.path("imprudence.url")
233 233
234 # Plugin host application 234 # Plugin host application
@@ -741,7 +741,7 @@ class DarwinManifest(ViewerManifest):
741 #self.path("vivox-runtime/universal-darwin/SLVoiceAgent.app", "SLVoiceAgent.app") 741 #self.path("vivox-runtime/universal-darwin/SLVoiceAgent.app", "SLVoiceAgent.app")
742 742
743 libdir = "../../libraries/universal-darwin/lib_release" 743 libdir = "../../libraries/universal-darwin/lib_release"
744 dylibs = {} 744 dylibs = {}
745 745
746 #for lib in "llkdu", "llcommon": 746 #for lib in "llkdu", "llcommon":
747 for lib in "llcommon": 747 for lib in "llcommon":
@@ -940,8 +940,6 @@ class LinuxManifest(ViewerManifest):
940 # Per platform MIME config on the cheap. See SNOW-307 / DEV-41388 940 # Per platform MIME config on the cheap. See SNOW-307 / DEV-41388
941 self.path("skins/default/xui/en-us/mime_types_linux.xml", "skins/default/xui/en-us/mime_types.xml") 941 self.path("skins/default/xui/en-us/mime_types_linux.xml", "skins/default/xui/en-us/mime_types.xml")
942 942
943 self.path("../llcommon/libllcommon.so", "lib/libllcommon.so")
944
945 self.path("featuretable_linux.txt") 943 self.path("featuretable_linux.txt")
946 944
947 945
@@ -997,6 +995,8 @@ class Linux_i686Manifest(LinuxManifest):
997 super(Linux_i686Manifest, self).construct() 995 super(Linux_i686Manifest, self).construct()
998 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin") 996 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin")
999 997
998 self.path("../llcommon/libllcommon.so", "lib/libllcommon.so")
999
1000 if (not self.standalone()) and self.prefix("../../libraries/i686-linux/lib_release_client", dst="lib"): 1000 if (not self.standalone()) and self.prefix("../../libraries/i686-linux/lib_release_client", dst="lib"):
1001 self.path("libapr-1.so.0") 1001 self.path("libapr-1.so.0")
1002 self.path("libaprutil-1.so.0") 1002 self.path("libaprutil-1.so.0")
@@ -1114,6 +1114,8 @@ class Linux_x86_64Manifest(LinuxManifest):
1114 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin") 1114 self.path("imprudence-stripped","bin/do-not-directly-run-imprudence-bin")
1115# self.path("../linux_crash_logger/linux-crash-logger-stripped","linux-crash-logger.bin") 1115# self.path("../linux_crash_logger/linux-crash-logger-stripped","linux-crash-logger.bin")
1116 1116
1117 self.path("../llcommon/libllcommon.so", "lib64/libllcommon.so")
1118
1117 self.path("linux_tools/launch_url.sh","launch_url.sh") 1119 self.path("linux_tools/launch_url.sh","launch_url.sh")
1118 if self.prefix("res-sdl"): 1120 if self.prefix("res-sdl"):
1119 self.path("*") 1121 self.path("*")