gnome-commander r2173 - in trunk: . src/intviewer



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

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

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

Modified: trunk/src/intviewer/bm_byte.cc
==============================================================================
--- trunk/src/intviewer/bm_byte.cc	(original)
+++ trunk/src/intviewer/bm_byte.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/bm_chartype.cc
==============================================================================
--- trunk/src/intviewer/bm_chartype.cc	(original)
+++ trunk/src/intviewer/bm_chartype.cc	Fri Oct 10 20:33:08 2008
@@ -30,6 +30,9 @@
 #include "bm_chartype.h"
 #include "cp437.h"
 
+using namespace std;
+
+
 /***********************************
     Bad Character hash-table functions
 ***********************************/

Modified: trunk/src/intviewer/datapresentation.cc
==============================================================================
--- trunk/src/intviewer/datapresentation.cc	(original)
+++ trunk/src/intviewer/datapresentation.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/fileops.cc
==============================================================================
--- trunk/src/intviewer/fileops.cc	(original)
+++ trunk/src/intviewer/fileops.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/image-render.cc
==============================================================================
--- trunk/src/intviewer/image-render.cc	(original)
+++ trunk/src/intviewer/image-render.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/inputmodes.cc
==============================================================================
--- trunk/src/intviewer/inputmodes.cc	(original)
+++ trunk/src/intviewer/inputmodes.cc	Fri Oct 10 20:33:08 2008
@@ -32,6 +32,9 @@
 #include "viewer-utils.h"
 #include "cp437.h"
 
+using namespace std;
+
+
 struct _GVInputModesData
 {
     gchar *input_mode_name;

Modified: trunk/src/intviewer/scroll-box.cc
==============================================================================
--- trunk/src/intviewer/scroll-box.cc	(original)
+++ trunk/src/intviewer/scroll-box.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/search-dlg.cc
==============================================================================
--- trunk/src/intviewer/search-dlg.cc	(original)
+++ trunk/src/intviewer/search-dlg.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/search-progress-dlg.cc
==============================================================================
--- trunk/src/intviewer/search-progress-dlg.cc	(original)
+++ trunk/src/intviewer/search-progress-dlg.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/searcher.cc
==============================================================================
--- trunk/src/intviewer/searcher.cc	(original)
+++ trunk/src/intviewer/searcher.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/text-render.cc
==============================================================================
--- trunk/src/intviewer/text-render.cc	(original)
+++ trunk/src/intviewer/text-render.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/viewer-utils.cc
==============================================================================
--- trunk/src/intviewer/viewer-utils.cc	(original)
+++ trunk/src/intviewer/viewer-utils.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/viewer-widget.cc
==============================================================================
--- trunk/src/intviewer/viewer-widget.cc	(original)
+++ trunk/src/intviewer/viewer-widget.cc	Fri Oct 10 20:33:08 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: trunk/src/intviewer/viewer-window.cc
==============================================================================
--- trunk/src/intviewer/viewer-window.cc	(original)
+++ trunk/src/intviewer/viewer-window.cc	Fri Oct 10 20:33:08 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]