change ghost/x11 toggleConsole to use dummy function in the header.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 3 May 2011 07:05:01 +0000 (07:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 3 May 2011 07:05:01 +0000 (07:05 +0000)
intern/ghost/intern/GHOST_SystemX11.cpp
intern/ghost/intern/GHOST_SystemX11.h

index 63fc1f3c67ff500ab5fb1d4c6afb755631497e70..378bc6b90beeb56f068a61d5a48ae495c0ca1602 100644 (file)
@@ -1485,16 +1485,8 @@ void GHOST_SystemX11::putClipboard(GHOST_TInt8 *buffer, bool selection) const
                        txt_select_buffer = (char*) malloc(strlen(buffer)+1);
                        strcpy(txt_select_buffer, buffer);
                }
-       
+
                if (owner != m_window)
                        fprintf(stderr, "failed to own primary\n");
        }
 }
-
-
-int GHOST_SystemX11::toggleConsole(int action)
-{
-       /* do nothing */
-       (void)action;
-       return 0;
-}
index 58398975e5db5236580e7ddbdf022a14597c8a41..0b00127363440534d33577ad13e147bf2bfe3d7e 100644 (file)
@@ -227,7 +227,10 @@ public:
         */
        void putClipboard(GHOST_TInt8 *buffer, bool selection) const;
 
-       int toggleConsole(int action); /* dummy */
+       /**
+        * @see GHOST_ISystem
+        */
+       int toggleConsole(int action) { return 0; }
 
        /**
         * Atom used for ICCCM, WM-spec and Motif.