diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llpreviewscript.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/newview/llpreviewscript.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewscript.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp index 6acd6bf..9ef711d 100644 --- a/linden/indra/newview/llpreviewscript.cpp +++ b/linden/indra/newview/llpreviewscript.cpp | |||
@@ -1262,7 +1262,7 @@ void LLPreviewLSL::saveIfNeeded() | |||
1262 | std::string filepath = gDirUtilp->getExpandedFilename(LL_PATH_CACHE,asset_id.asString()); | 1262 | std::string filepath = gDirUtilp->getExpandedFilename(LL_PATH_CACHE,asset_id.asString()); |
1263 | std::string filename = llformat("%s.lsl", filepath.c_str()); | 1263 | std::string filename = llformat("%s.lsl", filepath.c_str()); |
1264 | 1264 | ||
1265 | FILE* fp = LLFile::fopen(filename.c_str(), "wb"); | 1265 | LLFILE* fp = LLFile::fopen(filename.c_str(), "wb"); |
1266 | if(!fp) | 1266 | if(!fp) |
1267 | { | 1267 | { |
1268 | llwarns << "Unable to write to " << filename << llendl; | 1268 | llwarns << "Unable to write to " << filename << llendl; |
@@ -1336,7 +1336,7 @@ void LLPreviewLSL::uploadAssetLegacy(const std::string& filename, | |||
1336 | //system(command); | 1336 | //system(command); |
1337 | 1337 | ||
1338 | // load the error file into the error scrolllist | 1338 | // load the error file into the error scrolllist |
1339 | FILE* fp = LLFile::fopen(err_filename.c_str(), "r"); | 1339 | LLFILE* fp = LLFile::fopen(err_filename.c_str(), "r"); |
1340 | if(fp) | 1340 | if(fp) |
1341 | { | 1341 | { |
1342 | char buffer[MAX_STRING]; /*Flawfinder: ignore*/ | 1342 | char buffer[MAX_STRING]; /*Flawfinder: ignore*/ |
@@ -1851,7 +1851,7 @@ void LLLiveLSLEditor::loadScriptText(const char* filename) | |||
1851 | llerrs << "Filename is Empty!" << llendl; | 1851 | llerrs << "Filename is Empty!" << llendl; |
1852 | return; | 1852 | return; |
1853 | } | 1853 | } |
1854 | FILE* file = LLFile::fopen(filename, "rb"); /*Flawfinder: ignore*/ | 1854 | LLFILE* file = LLFile::fopen(filename, "rb"); /*Flawfinder: ignore*/ |
1855 | if(file) | 1855 | if(file) |
1856 | { | 1856 | { |
1857 | // read in the whole file | 1857 | // read in the whole file |
@@ -2063,7 +2063,7 @@ void LLLiveLSLEditor::saveIfNeeded() | |||
2063 | mItem->setTransactionID(tid); | 2063 | mItem->setTransactionID(tid); |
2064 | 2064 | ||
2065 | // write out the data, and store it in the asset database | 2065 | // write out the data, and store it in the asset database |
2066 | FILE* fp = LLFile::fopen(filename.c_str(), "wb"); | 2066 | LLFILE* fp = LLFile::fopen(filename.c_str(), "wb"); |
2067 | if(!fp) | 2067 | if(!fp) |
2068 | { | 2068 | { |
2069 | llwarns << "Unable to write to " << filename << llendl; | 2069 | llwarns << "Unable to write to " << filename << llendl; |
@@ -2136,7 +2136,7 @@ void LLLiveLSLEditor::uploadAssetLegacy(const std::string& filename, | |||
2136 | std::string dst_filename = llformat("%s.lso", filepath.c_str()); | 2136 | std::string dst_filename = llformat("%s.lso", filepath.c_str()); |
2137 | std::string err_filename = llformat("%s.out", filepath.c_str()); | 2137 | std::string err_filename = llformat("%s.out", filepath.c_str()); |
2138 | 2138 | ||
2139 | FILE *fp; | 2139 | LLFILE *fp; |
2140 | if(!lscript_compile(filename.c_str(), | 2140 | if(!lscript_compile(filename.c_str(), |
2141 | dst_filename.c_str(), | 2141 | dst_filename.c_str(), |
2142 | err_filename.c_str(), | 2142 | err_filename.c_str(), |