]> git.saurik.com Git - wxWidgets.git/commitdiff
Wrong #pragma interface/implementation warning fixes.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 30 Mar 2005 19:10:46 +0000 (19:10 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 30 Mar 2005 19:10:46 +0000 (19:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 files changed:
samples/dialup/nettest.cpp
samples/drawing/drawing.cpp
samples/dynamic/dynamic.cpp
samples/erase/erase.cpp
samples/exec/exec.cpp
samples/html/help/help.cpp
samples/html/test/test.cpp
samples/mobile/styles/styles.cpp
samples/mobile/styles/styles.h
samples/mobile/wxedit/wxedit.cpp
samples/mobile/wxedit/wxedit.h
samples/propsize/propsize.cpp
samples/shaped/shaped.cpp
samples/sockets/client.cpp
samples/sockets/server.cpp

index 13b4006fe52102bf7b7946555fb6cc00e1e712e8..4b15fea0afcc2749310ec604d41782db686b241b 100644 (file)
@@ -18,8 +18,8 @@
 // ----------------------------------------------------------------------------
 
 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "nettest.cpp"
-    #pragma interface "nettest.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
index 8e3c8734a966697b4e55b795ae3423c9b2f2655f..38ae2301d5bf0018188891f7f82a77b2b16f3021 100644 (file)
@@ -18,8 +18,8 @@
 // ----------------------------------------------------------------------------
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "drawing.cpp"
-    #pragma interface "drawing.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -523,7 +523,7 @@ void MyCanvas::DrawDefault(wxDC& dc)
     dc.GetPixel(1,1, &tmpColour);
     dc.FloodFill(1,1, tmpColour, wxFLOOD_SURFACE);
 #endif
-    
+
     dc.DrawCheckMark(5, 80, 15, 15);
     dc.DrawCheckMark(25, 80, 30, 30);
     dc.DrawCheckMark(60, 80, 60, 60);
index 55b3b400a7e17bba422ef17a81ebe9364d7af4cf..6e803e0eba5acdeba10cb5844280a535b5da2409 100644 (file)
@@ -10,8 +10,8 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-#pragma implementation "dynamic.cpp"
-#pragma interface "dynamic.cpp"
+#pragma implementation
+#pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -60,9 +60,9 @@ bool MyApp::OnInit(void)
   MyFrame *frame = new MyFrame(NULL, _T("Dynamic wxWidgets App"), 50, 50, 450, 340);
 
   // You used to have to do some casting for param 4, but now there are type-safe handlers
-  frame->Connect( DYNAMIC_QUIT,  wxID_ANY, 
+  frame->Connect( DYNAMIC_QUIT,  wxID_ANY,
                     wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnQuit) );
-  frame->Connect( DYNAMIC_ABOUT, wxID_ANY, 
+  frame->Connect( DYNAMIC_ABOUT, wxID_ANY,
                     wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnAbout) );
 
   // Give it an icon
index 8a006320837b0380941e656a71b3d29238164828..f3b752b6668d8782fd9d40e44aa5cf15fe7aeb8b 100644 (file)
@@ -18,8 +18,8 @@
 // ----------------------------------------------------------------------------
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "erase.cpp"
-    #pragma interface "erase.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -213,7 +213,7 @@ MyCanvas::MyCanvas( wxFrame *parent )
     m_bitmap = wxBitmap( wxICON(mondrian) );
 
     new wxStaticBitmap( this, wxID_ANY, m_bitmap, wxPoint(80,20) );
-    
+
     SetFocusIgnoringChildren();
 }
 
@@ -341,7 +341,7 @@ void MyCanvas::OnEraseBackground( wxEraseEvent& event )
     dc.SetPen(*wxGREEN_PEN);
 
     PrepareDC( dc );
-    
+
     // clear any junk currently displayed
     dc.Clear();
 
index 0a08de9af50cab7f650f4c0aaa180854484b4111..5ecdb7744d9b5458825c0b2035f7fcd39e2c6354 100644 (file)
@@ -18,8 +18,8 @@
 // ----------------------------------------------------------------------------
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "exec.cpp"
-    #pragma interface "exec.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -1028,7 +1028,7 @@ void MyPipedProcess::OnTerminate(int pid, int status)
 
 bool MyPipedProcess2::HasInput()
 {
-    if ( !!m_input )
+    if ( !m_input.empty() )
     {
         wxTextOutputStream os(*GetOutputStream());
         os.WriteString(m_input);
index d54817fab5345e2f90f81f11b79a1dabc90787dc..301cb0f7dd713441341978bfdd19b24d434929bb 100644 (file)
@@ -4,8 +4,8 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "help.cpp"
-    #pragma interface "help.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -60,7 +60,7 @@
       void OnClose(wxCloseEvent& event);
    private:
       wxHtmlHelpController help;
-   
+
     // any class wishing to process wxWidgets events must use this macro
     DECLARE_EVENT_TABLE()
    };
    bool MyApp::OnInit()
    {
       wxInitAllImageHandlers();
-#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB 
+#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
       wxFileSystem::AddHandler(new wxZipFSHandler);
 #endif
       SetVendorName(wxT("wxWidgets"));
-      SetAppName(wxT("wxHTMLHelp")); 
+      SetAppName(wxT("wxHTMLHelp"));
 
     // Create the main application window
       MyFrame *frame = new MyFrame(_("HTML Help Sample"),
 
 // frame constructor
    MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
-   : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size), 
+   : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size),
      help(wxHF_DEFAULT_STYLE | wxHF_OPEN_FILES)
    {
     // create a menu bar
        if ( help.GetFrame() ) // returns NULL if no help frame active
            help.GetFrame()->Close(true);
        // now we can safely delete the config pointer
-       event.Skip();   
+       event.Skip();
        delete wxConfig::Set(NULL);
    }
 
index b5f9c117bca6e77b0bc4834d0de39197a810c26e..6bde933e5588733b912cd53e9121984cba4036f8 100644 (file)
@@ -9,8 +9,8 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "test.cpp"
-    #pragma interface "test.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -191,7 +191,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
     SetMenuBar(menuBar);
 
     SetIcon(wxIcon(sample_xpm));
-    
+
 #if wxUSE_ACCEL
     // Create convenient accelerators for Back and Forward navigation
     wxAcceleratorEntry entries[2];
index ddef0c19e6890759602a1e93e3868bae0189591f..944822bc779456a5627db8cc91d51e3fb038d916 100644 (file)
@@ -6,7 +6,7 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-    #pragma implementation "styles.cpp"
+    #pragma implementation "styles.h"
 #endif
 
 // For compilers that support precompilation
index d4629f6e880e154f655f9bea392108a82b693c52..078423813ace546bce82d8e33b49f023a69f2209 100644 (file)
@@ -8,7 +8,7 @@
 #define __styles_H__
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma interface "styles.cpp"
+    #pragma interface "styles.h"
 #endif
 
 // Include wxWidgets' headers
index 87676f457169083033e96d5fe85d418539bdea23..49b826f480b334c21d1b9072863ad012d1762f0b 100644 (file)
@@ -6,7 +6,7 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-    #pragma implementation "wxedit.cpp"
+    #pragma implementation "wxedit.h"
 #endif
 
 // For compilers that support precompilation
index 6b412e61dd1c2c8c715a2ad1f693d67d09eb3e5c..66b1d41d2ec893dfb3ad1796ed08793fd627c6b3 100644 (file)
@@ -8,7 +8,7 @@
 #define __wxedit_H__
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma interface "wxedit.cpp"
+    #pragma interface "wxedit.h"
 #endif
 
 // Include wxWidgets' headers
index c217cba59729649bb201bd6872fa3ccf9258d472..2cf73c7018ec169c4256f8452de6a217c6e4c62a 100644 (file)
@@ -17,8 +17,8 @@
 // headers
 // ----------------------------------------------------------------------------
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "propsize.cpp"
-    #pragma interface "propsize.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
index 5ade1330a7328642c77024c8c69b1c3f54180e18..d91d53cb1291c4e89d0f3ae267518520612d35b5 100644 (file)
@@ -18,8 +18,8 @@
 // ----------------------------------------------------------------------------
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "shaped.cpp"
-    #pragma interface "shaped.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
index 33993489aa1cdb3051f8a5da4f0bd4f56ed8a1a0..c7c4e9da75be22adbb7680a878f1a95c38cb75a6 100644 (file)
@@ -18,8 +18,8 @@
 // --------------------------------------------------------------------------
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-#  pragma implementation "client.cpp"
-#  pragma interface "client.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
index 4904c662fc829abee027d2d8e8069aa32e4f9e3f..fab500e48d92043d97b10dac98550b76325810d8 100644 (file)
@@ -18,8 +18,8 @@
 // --------------------------------------------------------------------------
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-#  pragma implementation "server.cpp"
-#  pragma interface "server.cpp"
+    #pragma implementation
+    #pragma interface
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".