[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9713: const-correctness in gnash::S
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9713: const-correctness in gnash::SOL, more tests about SharedObject |
Date: |
Wed, 10 Sep 2008 14:49:03 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9713
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Wed 2008-09-10 14:49:03 +0200
message:
const-correctness in gnash::SOL, more tests about SharedObject
modified:
libamf/sol.cpp
libamf/sol.h
testsuite/actionscript.all/SharedObject.as
------------------------------------------------------------
revno: 9712.1.1
committer: Sandro Santilli <address@hidden>
branch nick: mybranch
timestamp: Wed 2008-09-10 12:50:05 +0200
message:
calling SharedObject.getLocal('') is the same as passing no arg
modified:
testsuite/actionscript.all/SharedObject.as
------------------------------------------------------------
revno: 9712.1.2
committer: Sandro Santilli <address@hidden>
branch nick: mybranch
timestamp: Wed 2008-09-10 13:09:16 +0200
message:
another test for invalid SharedObject.getLocal call
modified:
testsuite/actionscript.all/SharedObject.as
------------------------------------------------------------
revno: 9712.1.3
committer: Sandro Santilli <address@hidden>
branch nick: mybranch
timestamp: Wed 2008-09-10 14:47:39 +0200
message:
more const-correctness
modified:
libamf/sol.cpp
libamf/sol.h
=== modified file 'libamf/sol.cpp'
--- a/libamf/sol.cpp 2008-09-04 10:48:29 +0000
+++ b/libamf/sol.cpp 2008-09-10 12:47:39 +0000
@@ -322,7 +322,7 @@
// read the .sol file from disk
bool
-SOL::readFile(std::string &filespec)
+SOL::readFile(const std::string &filespec)
{
// GNASH_REPORT_FUNCTION;
struct stat st;
=== modified file 'libamf/sol.h'
--- a/libamf/sol.h 2008-09-09 10:59:03 +0000
+++ b/libamf/sol.h 2008-09-10 12:47:39 +0000
@@ -69,7 +69,7 @@
bool writeFile(const std::string &filespec, const std::string &objname);
// read the .sol file from disk
- bool readFile(std::string &filespec);
+ bool readFile(const std::string &filespec);
std::vector<gnash::Network::byte_t> getHeader() { return _header; };
=== modified file 'testsuite/actionscript.all/SharedObject.as'
--- a/testsuite/actionscript.all/SharedObject.as 2008-09-10 10:36:27
+0000
+++ b/testsuite/actionscript.all/SharedObject.as 2008-09-10 11:09:16
+0000
@@ -185,10 +185,16 @@
so7.data.a = 1;
so7.flush();
+so8 = SharedObject.getLocal('');
+xcheck_equals(typeof(so8), 'null');
+
+so9 = SharedObject.getLocal('', 'something');
+xcheck_equals(typeof(so9), 'null');
+
//------------------------------------------
// END OF TESTS
//------------------------------------------
-check_totals(46);
+check_totals(48);
#endif // OUTPUT_VERSION >= 6
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9713: const-correctness in gnash::SOL, more tests about SharedObject,
Sandro Santilli <=