Commit Graph

14630 Commits (8b7c903e5cf5620deaab09ec39e978d62ddb45c3)

Author SHA1 Message Date
Nat Goodspeed 8b7c903e5c Fix a couple gotchas in LLSDArray, LLSDParam, llsd_equals().
Nested LLSDArray expressions, e.g.:
LLSD array_of_arrays(LLSDArray(LLSDArray(17)(34))
                              (LLSDArray("x")("y")));
would quietly produce bad results because the outermost LLSDArray was being
constructed with the compiler's implicit LLSDArray(const LLSDArray&) rather
than LLSDArray(const LLSD&) as the reader assumes. Fixed with an explicit copy
constructor to Do The Right Thing.
Generalized LLSDParam<float> specialization into a macro to resolve similar
conversion ambiguities for float, LLUUID, LLDate, LLURI and LLSD::Binary.
Added optional bits= argument to llsd_equals() to permit comparing embedded
Real values using is_approx_equal_fraction() rather than strictly bitwise.
Omitting bits= retains current bitwise-comparison behavior.
2011-01-31 18:00:58 -05:00
Nat Goodspeed 2bafe0dc8a Extend LLEventAPI to directly call other functions & methods.
Until now, LLEventAPI has only been able to register functions specifically
accepting(const LLSD&). Typically you add a wrapper method to your LLEventAPI
subclass, register that, have it extract desired params from the incoming LLSD
and then call the actual function of interest.
With help from Alain, added new LLEventAPI::add() methods capable of
registering functions/methods with arbitrary parameter signatures. The code
uses boost::fusion magic to implicitly match incoming LLSD arguments to the
function's formal parameter list, bypassing the need for an explicit helper
method.
New add() methods caused an ambiguity with a previous convenience overload.
Removed that overload and fixed the one existing usage.
Replaced LLEventDispatcher::get() with try_call() -- it's no longer easy to
return a Callable for caller to call directly. But the one known use of that
feature simply used it to avoid fatal LL_ERRS on unknown function-name string,
hence the try_call() approach actually addresses that case more directly.
Added indra/common/lleventdispatcher_test.cpp to exercise new functionality.
2011-01-28 20:18:10 -05:00
Nat Goodspeed 2770d6f881 Introduce LLSDArray, LLSDMap, LLSDParam.
LLSDArray is a helper to construct an LLSD::Array value inline.
LLSDMap is a helper to construct an LLSD::Map value inline.
LLSDParam is a customization point, a way for generic code to support
unforseen parameter types as conversion targets for LLSD values.
2011-01-28 20:14:38 -05:00
Nat Goodspeed 8833cda41e Added tag nat-eventapi2-base for changeset b542f8134a2b 2011-01-28 19:56:15 -05:00
Oz Linden 1e346e085d Automated merge with file:///Users/oz/Work/V-DR 2011-01-27 13:03:15 -05:00
Oz Linden 3ef1a5a5d2 merge changes for beta fixes 2011-01-27 13:01:55 -05:00
Dessie Linden 3c1cafeac1 Merged beta2 tag 2011-01-27 08:44:32 -08:00
Oz Linden c44e712821 merge changes for storm-348 2011-01-27 09:48:51 -05:00
Oz Linden a98b700304 merge changes for storm-843 2011-01-27 09:47:57 -05:00
Oz Linden b4c36af141 merge changes for storm-547 2011-01-27 09:47:22 -05:00
Oz Linden 92eadc18f3 merge changes for storm-373 2011-01-27 09:46:39 -05:00
Dessie Linden 89f49d53d5 Added tag DRTVWR-33--2.5.0beta2 for changeset 54d772d8687c 2011-01-26 16:00:46 -08:00
David Kaprielian 3eba59e963 Adding run_tests buildparam and setting to false for coverity builds so coverity can run.
Reviewed by CG.
2011-01-26 15:07:54 -08:00
Vadim ProductEngine 714ba52df0 correct build error 2011-01-25 17:10:23 -05:00
Seth ProductEngine 358a091724 STORM-843 FIXED incremental inventory search to use more restrictive or less restrictive filtering.
Stored filter sub-string comparison with new string failed because of non-matching register of compared strings. Transforming the new search term to uppercase before comparing it with previous one allows to determine if filter became more or less restrictive and not to restart the search over.
Used patch provided by Satomi Ahn.
2011-01-25 01:13:39 +02:00
Seth ProductEngine 39a609a7ae Fixed TestCapabilityProvider build issue. 2011-01-25 01:28:46 +02:00
Xiaohong Bao eec332cfbe Automated merge with http://hg.secondlife.com/viewer-development 2011-01-24 15:51:33 -07:00
Xiaohong Bao 2a14079563 fix for SH-445: debug settings -> "CacheNumberOfRegionsForObjects" does not limit the number of object cache files 2011-01-24 15:50:46 -07:00
Oz Linden de83bd5c6b merge changes for beta fixes 2011-01-24 14:22:08 -05:00
Oz Linden f57aa3e83f merge changes for i18n fixes 2011-01-24 11:44:43 -05:00
Aleric Inglewood 295536ae98 VWR-24321: fix validation of textures that start with 00 2011-01-24 09:35:41 -05:00
Eli Linden b429ff8ec3 INTL-20,CT-635 WIP DE,FR,ES,PT,PL translation (new files) for Viewer 2.5 2011-01-21 16:11:25 -08:00
Eli Linden c47e606625 INTL-20,CT-635 WIP DE,FR,ES,PT,PL translation for Viewer 2.5 2011-01-21 16:11:09 -08:00
Xiaohong Bao 130e6e895b Merge 2011-01-21 16:26:35 -07:00
Xiaohong Bao 4af7e9eb64 Merge viewer-development-shining up to REV 3bf724ecb7c6 (fix for SH-829: Viewer attempting to load precached images in file types that are not being used.) 2011-01-21 16:25:23 -07:00
Oz Linden 7a453b7c93 add missing entry in contributions.txt for VWR-24347 2011-01-21 16:20:29 -05:00
Aleric Inglewood ee6a40beb1 VWR-24519: make debugging easier by not spawning spare process 2011-01-21 16:02:38 -05:00
Oz Linden d034d8d928 merge changes for vwr-24347 2011-01-21 15:55:55 -05:00
Aleric Inglewood 97a9211d87 VWR-24354: correct manifest dependencies to prevent parallel install problem 2011-01-21 15:48:12 -05:00
Oz Linden 790dfe7556 merge changes for storm-844 2011-01-21 15:29:40 -05:00
Oz Linden 4652e26196 merge changes for storm-869 2011-01-21 15:14:39 -05:00
Oz Linden 2d6228b4e0 merge changes for storm-874/ER-428: fix lost movement updates when walking 2011-01-21 15:11:20 -05:00
Oz Linden bb3be2c07f merge changes for storm-715 2011-01-21 07:23:48 -05:00
Oz Linden bca2b9a053 merge changes for storm-832 2011-01-21 07:22:37 -05:00
Oz Linden a426a4b65b merge changes for storm-834 2011-01-21 07:21:51 -05:00
Oz Linden 3015e43105 merge changes for storm-484 2011-01-21 07:20:54 -05:00
Oz Linden 5f997751fe merge changes for storm-383 2011-01-21 07:20:18 -05:00
Oz Linden 4f3953763d merge changes from viewer-beta 2011-01-20 20:48:16 -05:00
Xiaohong Bao e3f5b66d5a fix for SH-829: Viewer attempting to load precached images in file types that are not being used. 2011-01-20 15:20:27 -07:00
Aleric Inglewood c47ab36b20 VWR-24320: remove dump of call stack on clean exit 2011-01-20 16:01:27 -05:00
Aleric Inglewood a873ae55a3 VWR-24317: remove warning due to unassigned variable 2011-01-20 15:57:07 -05:00
Aleric Inglewood ad34f858dc VWR-24317: remove warning re: RenderCubeMap by deferring initialization 2011-01-20 15:52:37 -05:00
Oz Linden f9b9c7a581 merge changes for chop-366 2011-01-20 15:25:49 -05:00
Kent Quirk 3cce47430a VWR-24426: fix SSL handshake error using webkit 4.7 2011-01-20 15:20:51 -05:00
Aleric Inglewood 9b341ec012 VWR-24317: remove warning caused by reading the last line of the featuretable twice 2011-01-20 15:03:48 -05:00
Aleric Inglewood e9c6800e23 VWR-24317: remove warnings for deleting non-existant texture file on startup 2011-01-20 14:57:33 -05:00
Aleric Inglewood 466413cdf0 VWR-24317: clean up incorrect warnings prior to login in log file 2011-01-20 14:44:06 -05:00
Aleric Inglewood 42604a1080 VWR-24315: update cached control values when resetting debug setting to default 2011-01-20 14:35:04 -05:00
Aleric Inglewood 80d7432ce6 VWR-13040 - clean up LLObjectSelection iterator 2011-01-20 14:26:57 -05:00
Xiaohong Bao 47e3154393 fix for SH-730: sculpted prim attachment shapes on impostored avatars load very slowly 2011-01-19 21:17:38 -07:00