[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server/asobj NetConnection.cpp Number.cpp...
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash/server/asobj NetConnection.cpp Number.cpp... |
Date: |
Wed, 30 Jan 2008 10:09:36 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/01/30 10:09:36
Modified files:
server/asobj : NetConnection.cpp Number.cpp System.cpp xml.cpp
xmlattrs.cpp xmlnode.cpp
Log message:
* server/asobj/System.cpp: consts.
* server/asobj: (various) drop 'using namespace std;' where
it's not
even used.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/NetConnection.cpp?cvsroot=gnash&r1=1.55&r2=1.56
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Number.cpp?cvsroot=gnash&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/System.cpp?cvsroot=gnash&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/xml.cpp?cvsroot=gnash&r1=1.67&r2=1.68
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/xmlattrs.cpp?cvsroot=gnash&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/xmlnode.cpp?cvsroot=gnash&r1=1.44&r2=1.45
Patches:
Index: NetConnection.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/NetConnection.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- NetConnection.cpp 22 Jan 2008 08:39:08 -0000 1.55
+++ NetConnection.cpp 30 Jan 2008 10:09:35 -0000 1.56
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-/* $Id: NetConnection.cpp,v 1.55 2008/01/22 08:39:08 bjacques Exp $ */
+/* $Id: NetConnection.cpp,v 1.56 2008/01/30 10:09:35 bwy Exp $ */
#ifdef HAVE_CONFIG_H
#include "gnashconfig.h"
@@ -37,8 +37,6 @@
#include "URLAccessManager.h"
#include "URL.h"
-using namespace std;
-
namespace gnash {
static as_value netconnection_new(const fn_call& fn);
@@ -74,7 +72,7 @@
URL uri(completeUrl, get_base_url());
std::string uriStr(uri.str());
- assert(uriStr.find("://")!=string::npos);
+ assert(uriStr.find("://") != std::string::npos);
// Check if we're allowed to open url
if (!URLAccessManager::allow(uri)) {
Index: Number.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Number.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- Number.cpp 21 Jan 2008 20:55:57 -0000 1.35
+++ Number.cpp 30 Jan 2008 10:09:35 -0000 1.36
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-/* $Id: Number.cpp,v 1.35 2008/01/21 20:55:57 rsavoye Exp $ */
+/* $Id: Number.cpp,v 1.36 2008/01/30 10:09:35 bwy Exp $ */
#include "log.h"
#include "tu_config.h"
@@ -50,8 +50,6 @@
#undef FP_NAN
#define FP_NAN 16
-using namespace std;
-
namespace gnash {
// Forward declarations
Index: System.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/System.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- System.cpp 30 Jan 2008 09:41:50 -0000 1.22
+++ System.cpp 30 Jan 2008 10:09:36 -0000 1.23
@@ -33,7 +33,7 @@
namespace gnash {
-std::string& systemLanguage();
+const std::string& systemLanguage();
static as_value system_security_allowdomain(const fn_call& fn);
static as_value system_security_allowinsecuredomain(const fn_call& fn);
@@ -206,7 +206,7 @@
global.init_member("System", obj.get());
}
-std::string& systemLanguage()
+const std::string& systemLanguage()
{
// Two-letter language code ('en', 'de') corresponding to ISO 639-1
// Chinese can be either zh-CN or zh-TW. English used to have a
Index: xml.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/xml.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -b -r1.67 -r1.68
--- xml.cpp 21 Jan 2008 20:55:59 -0000 1.67
+++ xml.cpp 30 Jan 2008 10:09:36 -0000 1.68
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-/* $Id: xml.cpp,v 1.67 2008/01/21 20:55:59 rsavoye Exp $ */
+/* $Id: xml.cpp,v 1.68 2008/01/30 10:09:36 bwy Exp $ */
#ifdef HAVE_CONFIG_H
#include "gnashconfig.h"
@@ -56,8 +56,6 @@
#include <boost/algorithm/string/case_conv.hpp>
#include <memory>
-using namespace std;
-
namespace gnash {
//#define DEBUG_MEMORY_ALLOCATION 1
Index: xmlattrs.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/xmlattrs.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- xmlattrs.cpp 21 Jan 2008 20:55:59 -0000 1.7
+++ xmlattrs.cpp 30 Jan 2008 10:09:36 -0000 1.8
@@ -15,7 +15,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-/* $Id: xmlattrs.cpp,v 1.7 2008/01/21 20:55:59 rsavoye Exp $ */
+/* $Id: xmlattrs.cpp,v 1.8 2008/01/30 10:09:36 bwy Exp $ */
#ifdef HAVE_CONFIG_H
#include "gnashconfig.h"
@@ -42,8 +42,6 @@
#include <libxml/tree.h>
#include <libxml/xmlreader.h>
-using namespace std;
-
namespace gnash {
//#define DEBUG_MEMORY_ALLOCATION 1
Index: xmlnode.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/xmlnode.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- xmlnode.cpp 21 Jan 2008 20:55:59 -0000 1.44
+++ xmlnode.cpp 30 Jan 2008 10:09:36 -0000 1.45
@@ -16,7 +16,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-/* $Id: xmlnode.cpp,v 1.44 2008/01/21 20:55:59 rsavoye Exp $ */
+/* $Id: xmlnode.cpp,v 1.45 2008/01/30 10:09:36 bwy Exp $ */
#ifdef HAVE_CONFIG_H
#include "gnashconfig.h"
@@ -47,9 +47,6 @@
#include <libxml/tree.h>
#include <libxml/xmlreader.h>
-
-using namespace std;
-
//#define DEBUG_MEMORY_ALLOCATION 1
namespace gnash {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/server/asobj NetConnection.cpp Number.cpp...,
Benjamin Wolsey <=