Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/wxhexeditor/files: wxhexeditor-0.09-gcc45.patch
Date: Tue, 31 Aug 2010 04:17:06
Message-Id: 20100831041658.4C23A20054@flycatcher.gentoo.org
1 dirtyepic 10/08/31 04:16:58
2
3 Added: wxhexeditor-0.09-gcc45.patch
4 Log:
5 Initial import. Based on ebuilds by Yoshi Watanabe and Philipp Richter in
6 bug #283994.
7
8 (Portage version: 2.2_rc72/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 app-editors/wxhexeditor/files/wxhexeditor-0.09-gcc45.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/wxhexeditor/files/wxhexeditor-0.09-gcc45.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/wxhexeditor/files/wxhexeditor-0.09-gcc45.patch?rev=1.1&content-type=text/plain
15
16 Index: wxhexeditor-0.09-gcc45.patch
17 ===================================================================
18 http://wxhexeditor.svn.sourceforge.net/viewvc/wxhexeditor/trunk/src/HexEditor.cpp?r1=132&r2=145
19
20 --- a/src/HexEditor.cpp
21 +++ b/src/HexEditor.cpp
22 @@ -102,7 +102,7 @@ bool HexEditor::FileOpen(wxFileName& myfilename ){
23 wxLogError(_("Critical Error. File pointer is not empty!"));
24 return false;
25 }
26 - else if(myfilename.IsFileReadable()){ //IsFileReadable
27 + else if( myfilename.IsFileReadable() ){ //IsFileReadable
28 if ( myfilename.GetSize( ) < 50*MB && myfilename.IsFileWritable() )
29 myfile = new FileDifference( myfilename, FileDifference::ReadWrite );
30 else
31 @@ -869,20 +869,20 @@ void HexEditor::OnMouseTest( wxMouseEvent& event ){
32 }
33
34 void HexEditor::FindDialog( void ){
35 - class FindDialog *myfind = new FindDialog::FindDialog( this, myfile );
36 + ::FindDialog *myfind = new ::FindDialog( this, myfile );
37 myfind->ShowModal();
38 myfind->Destroy();
39 }
40
41 void HexEditor::ReplaceDialog( void ){
42 - class ReplaceDialog *myfind = new ReplaceDialog::ReplaceDialog( this, myfile );
43 + ::ReplaceDialog *myfind = new ::ReplaceDialog( this, myfile );
44 myfind->ShowModal();
45 myfind->Destroy();
46 }
47
48 void HexEditor::GotoDialog( void ){
49 uint64_t newoffset;
50 - class GotoDialog *mygoto = new GotoDialog::GotoDialog( this, newoffset, CursorOffset(), FileLength(), myDialogVector );
51 + ::GotoDialog *mygoto = new ::GotoDialog( this, newoffset, CursorOffset(), FileLength(), myDialogVector );
52 if( mygoto->ShowModal() == wxID_OK ){
53 Goto( newoffset );
54 }