File: 08-remove-debug.patch

package info (click to toggle)
wxhexeditor 0.23%2Brepack-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,424 kB
  • ctags: 1,722
  • sloc: cpp: 12,487; ansic: 6,222; makefile: 188; python: 35; sh: 7
file content (40 lines) | stat: -rw-r--r-- 1,248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: Remove some debug printed on stdout.

--- a/src/HexEditor.cpp
+++ b/src/HexEditor.cpp
@@ -42,9 +42,11 @@
 	tagpanel(tagpanel_),
 	dasmpanel(dasmpanel_) {
 	ComparatorHexEditor=NULL;
+    #if 0
 	// Here, code praying to the GOD for protecting our open file from wxHexEditor's bugs and other things.
 	// This is really crucial step! Be adviced to not remove it, even if you don't believer.
 	printf("Rahman ve Rahim olan Allah'ın adıyla.\n");
+    #endif
 	myfile = NULL;
 	if( myfilename_ != NULL ) {
 		if( !FileOpen( *myfilename_ ) ) {
--- a/src/HexEditorCtrl/HexEditorCtrl.h
+++ b/src/HexEditorCtrl/HexEditorCtrl.h
@@ -64,7 +64,9 @@
 		void SetState( bool new_state ){
 			state = new_state;
 
+			#if 0
 			std::cout << "Send UpdateUI Event" << std::endl;
+			#endif
 			wxUpdateUIEvent event;
 			if( new_state )
 				event.SetString( wxT("Selected") );
--- a/src/HexEditorFrame.cpp
+++ b/src/HexEditorFrame.cpp
@@ -481,7 +481,9 @@
 	}
 
 void HexEditorFrame::OnMenuEvent( wxCommandEvent& event ){
+    #if 0
 	std::cout << "OnMenuEvent: "  << event.GetId() << std::endl;
+    #endif
 	if( event.GetId() == wxID_NEW ){	//GetFile Lenght, Save file as, Create file, Open file as RW
 		wxString lngt;
 		long unsigned int size=0;