gnome-commander r2174 - in branches/gcmd-1-3: . src/intviewer



Author: epiotr
Date: Fri Oct 10 20:33:35 2008
New Revision: 2174
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2174&view=rev

Log:
C++: add 'using namespace std'

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/intviewer/bm_byte.cc
   branches/gcmd-1-3/src/intviewer/bm_chartype.cc
   branches/gcmd-1-3/src/intviewer/datapresentation.cc
   branches/gcmd-1-3/src/intviewer/fileops.cc
   branches/gcmd-1-3/src/intviewer/image-render.cc
   branches/gcmd-1-3/src/intviewer/inputmodes.cc
   branches/gcmd-1-3/src/intviewer/scroll-box.cc
   branches/gcmd-1-3/src/intviewer/search-dlg.cc
   branches/gcmd-1-3/src/intviewer/search-progress-dlg.cc
   branches/gcmd-1-3/src/intviewer/searcher.cc
   branches/gcmd-1-3/src/intviewer/text-render.cc
   branches/gcmd-1-3/src/intviewer/viewer-utils.cc
   branches/gcmd-1-3/src/intviewer/viewer-widget.cc
   branches/gcmd-1-3/src/intviewer/viewer-window.cc

Modified: branches/gcmd-1-3/src/intviewer/bm_byte.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/bm_byte.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/bm_byte.cc	Fri Oct 10 20:33:35 2008
@@ -30,6 +30,8 @@
 #include "bm_byte.h"
 #include "cp437.h"
 
+using namespace std;
+
 
 inline void badchar_compute(guint8 *pattern, int m, /*out*/ int *bad)
 {

Modified: branches/gcmd-1-3/src/intviewer/bm_chartype.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/bm_chartype.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/bm_chartype.cc	Fri Oct 10 20:33:35 2008
@@ -30,6 +30,9 @@
 #include "bm_chartype.h"
 #include "cp437.h"
 
+using namespace std;
+
+
 /***********************************
     Bad Character hash-table functions
 ***********************************/

Modified: branches/gcmd-1-3/src/intviewer/datapresentation.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/datapresentation.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/datapresentation.cc	Fri Oct 10 20:33:35 2008
@@ -37,6 +37,9 @@
 #include "inputmodes.h"
 #include "datapresentation.h"
 
+using namespace std;
+
+
 typedef offset_type (*align_offset_to_line_start_proc)(GVDataPresentation *dp, offset_type offset);
 typedef offset_type (*scroll_lines_proc)(GVDataPresentation *dp, offset_type current_offset, int delta);
 typedef offset_type (*get_end_of_line_offset_proc)(GVDataPresentation *dp, offset_type start_of_line);

Modified: branches/gcmd-1-3/src/intviewer/fileops.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/fileops.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/fileops.cc	Fri Oct 10 20:33:35 2008
@@ -60,6 +60,9 @@
 
 #define VIEW_PAGE_SIZE 8192
 
+using namespace std;
+
+
 struct _ViewerFileOps
 {
     // File handling (based on 'Midnight Commander'-'s view.c)

Modified: branches/gcmd-1-3/src/intviewer/image-render.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/image-render.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/image-render.cc	Fri Oct 10 20:33:35 2008
@@ -40,6 +40,8 @@
 #include "gnome-cmd-file.h"
 #include "utils.h"
 
+using namespace std;
+
 
 static GtkWidget *parent_class = NULL;
 
@@ -52,7 +54,7 @@
 
 
 // Class Private Data
-struct _ImageRenderPrivate
+struct ImageRenderPrivate
 {
     guint8 button; // The button pressed in "button_press_event"
 

Modified: branches/gcmd-1-3/src/intviewer/inputmodes.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/inputmodes.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/inputmodes.cc	Fri Oct 10 20:33:35 2008
@@ -32,6 +32,9 @@
 #include "viewer-utils.h"
 #include "cp437.h"
 
+using namespace std;
+
+
 struct _GVInputModesData
 {
     gchar *input_mode_name;

Modified: branches/gcmd-1-3/src/intviewer/scroll-box.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/scroll-box.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/scroll-box.cc	Fri Oct 10 20:33:35 2008
@@ -32,9 +32,11 @@
 #include <gtk/gtk.h>
 #include <gtk/gtktable.h>
 
-
 #include "scroll-box.h"
 
+using namespace std;
+
+
 static GtkTableClass *parent_class = NULL;
 
 // Class Private Data

Modified: branches/gcmd-1-3/src/intviewer/search-dlg.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/search-dlg.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/search-dlg.cc	Fri Oct 10 20:33:35 2008
@@ -29,6 +29,9 @@
 
 #include "libgviewer.h"
 
+using namespace std;
+
+
 // HEX history doesn't work yet
 #undef HEX_HISTORY
 
@@ -40,7 +43,7 @@
 static void search_dlg_destroy (GtkObject *object);
 static void search_dlg_action_response(GtkDialog *dlg, gint arg1, GViewerSearchDlg *sdlg);
 
-struct _GViewerSearchDlgPrivate
+struct GViewerSearchDlgPrivate
 {
     GtkWidget  *table;
     GtkWidget  *label;

Modified: branches/gcmd-1-3/src/intviewer/search-progress-dlg.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/search-progress-dlg.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/search-progress-dlg.cc	Fri Oct 10 20:33:35 2008
@@ -28,6 +28,9 @@
 
 #include "libgviewer.h"
 
+using namespace std;
+
+
 static GtkDialogClass *parent_class = NULL;
 
 static void search_progress_dlg_destroy (GtkObject *object);

Modified: branches/gcmd-1-3/src/intviewer/searcher.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/searcher.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/searcher.cc	Fri Oct 10 20:33:35 2008
@@ -29,6 +29,9 @@
 #include "bm_chartype.h"
 #include "bm_byte.h"
 
+using namespace std;
+
+
 static void g_viewer_searcher_class_init(GViewerSearcherClass *klass);
 static void g_viewer_searcher_init(GViewerSearcher *sp);
 static void g_viewer_searcher_finalize(GObject *object);

Modified: branches/gcmd-1-3/src/intviewer/text-render.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/text-render.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/text-render.cc	Fri Oct 10 20:33:35 2008
@@ -43,6 +43,9 @@
 #include "datapresentation.h"
 #include "text-render.h"
 
+using namespace std;
+
+
 #define HEXDUMP_FIXED_LIMIT 16
 #define MAX_CLIPBOARD_COPY_LENGTH 0xFFFFFF
 

Modified: branches/gcmd-1-3/src/intviewer/viewer-utils.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/viewer-utils.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/viewer-utils.cc	Fri Oct 10 20:33:35 2008
@@ -31,6 +31,8 @@
 #include "gvtypes.h"
 #include "viewer-utils.h"
 
+using namespace std;
+
 
 gchar *gviewer_get_string (const gchar *path, const gchar *def)
 {

Modified: branches/gcmd-1-3/src/intviewer/viewer-widget.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/viewer-widget.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/viewer-widget.cc	Fri Oct 10 20:33:35 2008
@@ -43,6 +43,9 @@
 #include "gnome-cmd-file.h"
 #include "utils.h"
 
+using namespace std;
+
+
 #define DEFAULT_TAB_SIZE          8
 #define DEFAULT_WRAP_MODE      TRUE
 #define DEFAULT_FIXED_LIMIT      80

Modified: branches/gcmd-1-3/src/intviewer/viewer-window.cc
==============================================================================
--- branches/gcmd-1-3/src/intviewer/viewer-window.cc	(original)
+++ branches/gcmd-1-3/src/intviewer/viewer-window.cc	Fri Oct 10 20:33:35 2008
@@ -42,6 +42,9 @@
 #include "gnome-cmd-file.h"
 #include "utils.h"
 
+using namespace std;
+
+
 #define G_OBJ_CHARSET_KEY        "charset"
 #define G_OBJ_DISPMODE_KEY       "dispmode"
 #define G_OBJ_BYTES_PER_LINE_KEY "bytesperline"
@@ -54,7 +57,7 @@
 
 const static int MAX_SCALE_FACTOR_INDEX = G_N_ELEMENTS(image_scale_factors);
 
-struct _GViewerWindowPrivate
+struct GViewerWindowPrivate
 {
     // Gtk User Interface
     GtkWidget *vbox;
@@ -149,7 +152,7 @@
         initial_settings = &set;
     }
 
-    GtkWidget *w = gviewer_window_new(initial_settings);
+    GtkWidget *w = gviewer_window_new ();
 
     gviewer_window_load_file (GVIEWER_WINDOW(w), f);
 
@@ -197,14 +200,6 @@
 }
 
 
-GtkWidget *gviewer_window_new (GViewerWindowSettings *initial_settings)
-{
-    GViewerWindow *w = (GViewerWindow *) gtk_type_new (gviewer_window_get_type ());
-
-    return GTK_WIDGET (w);
-}
-
-
 static void gviewer_window_map (GtkWidget *widget)
 {
     if (GTK_WIDGET_CLASS (parent_class)->map != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]