X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71c9ea2b9e06a5f1bda1bf8df2410bc9152f9f04..d0363d3d2d959f8ad86177de9179a284206ee615:/contrib/src/gizmos/splittree.cpp diff --git a/contrib/src/gizmos/splittree.cpp b/contrib/src/gizmos/splittree.cpp index 60f4129f8f..0eaed896c2 100644 --- a/contrib/src/gizmos/splittree.cpp +++ b/contrib/src/gizmos/splittree.cpp @@ -18,9 +18,6 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "splittree.h" -#endif // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -144,8 +141,8 @@ int wxRemotelyScrolledTreeCtrl::GetScrollPos( { #if USE_GENERIC_TREECTRL || !defined(__WXMSW__) - // this condition fixes extsitence of warning but - wxScrolledWindow* scrolledWindow = + // this condition fixes extsitence of warning but + wxScrolledWindow* scrolledWindow = // but GetScrolledWindow is still executed in case internally does something #endif GetScrolledWindow(); @@ -197,7 +194,7 @@ void wxRemotelyScrolledTreeCtrl::GetViewStart(int *x, int *y) const } // In case we're using the generic tree control. -void wxRemotelyScrolledTreeCtrl::PrepareDC( +void wxRemotelyScrolledTreeCtrl::PrepareDC( #if USE_GENERIC_TREECTRL || !defined(__WXMSW__) wxDC& dc #else @@ -232,7 +229,7 @@ void wxRemotelyScrolledTreeCtrl::ScrollToLine(int WXUNUSED(posHoriz), int posVer #ifdef __WXMSW__ #if USE_GENERIC_TREECTRL if (!IsKindOf(CLASSINFO(wxGenericTreeCtrl))) -#endif +#endif // USE_GENERIC_TREECTRL { UINT sbCode = SB_THUMBPOSITION; HWND vertScrollBar = 0; @@ -240,8 +237,8 @@ void wxRemotelyScrolledTreeCtrl::ScrollToLine(int WXUNUSED(posHoriz), int posVer } #if USE_GENERIC_TREECTRL else -#endif -#endif +#endif // USE_GENERIC_TREECTRL +#endif // __WXMSW__ #if USE_GENERIC_TREECTRL || !defined(__WXMSW__) { wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this; @@ -256,7 +253,8 @@ void wxRemotelyScrolledTreeCtrl::ScrollToLine(int WXUNUSED(posHoriz), int posVer } */ } -#endif +#endif // USE_GENERIC_TREECTRL || !defined(__WXMSW__) + wxUnusedVar(posVert); } void wxRemotelyScrolledTreeCtrl::OnSize(wxSizeEvent& event) @@ -745,4 +743,3 @@ void wxSplitterScrolledWindow::OnScroll(wxScrollWinEvent& event) inOnScroll = false; } -