aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorAleric Inglewood2010-09-30 02:17:43 +0200
committerAleric Inglewood2010-09-30 02:17:43 +0200
commit5585f21a28019067af2800837d72bab23908f882 (patch)
tree9c06e1cc63aef19faea1292927f43a93e547c93b /linden/indra/newview/llpreviewscript.cpp
parentUpdate of doc/contributions.txt (diff)
downloadmeta-impy-5585f21a28019067af2800837d72bab23908f882.zip
meta-impy-5585f21a28019067af2800837d72bab23908f882.tar.gz
meta-impy-5585f21a28019067af2800837d72bab23908f882.tar.bz2
meta-impy-5585f21a28019067af2800837d72bab23908f882.tar.xz
SNOW-86: Dangerous macro leads to possible wrong code
See http://redmine.imprudenceviewer.org/issues/571 This patch appeared to already have been partially applied. I added more semi-colons after all llendl (and LLENDL) macros, and wrapped the lllog ... llendl construct into do { ... } while(0) as is usual for macros that mimic a single statement. The patch was double checked with regular expression greps and a compile.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpreviewscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp
index d8c3aa9..bde7242 100644
--- a/linden/indra/newview/llpreviewscript.cpp
+++ b/linden/indra/newview/llpreviewscript.cpp
@@ -1396,7 +1396,7 @@ void LLPreviewLSL::onSaveComplete(const LLUUID& asset_uuid, void* user_data, S32
1396 else 1396 else
1397 { 1397 {
1398 llwarns << "Inventory item for script " << info->mItemUUID 1398 llwarns << "Inventory item for script " << info->mItemUUID
1399 << " is no longer in agent inventory." << llendl 1399 << " is no longer in agent inventory." << llendl;
1400 } 1400 }
1401 1401
1402 // Find our window and close it if requested. 1402 // Find our window and close it if requested.