]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
work around MSVC warnings about using uninitialized variables in optimized build
[wxWidgets.git] / samples / scroll / scroll.cpp
index f9adc6f43f7b6f6cee2f0c82f468cf9a49538aef..e30c5348d3e95d4482158eefe8a67c748e56907e 100644 (file)
@@ -1240,7 +1240,7 @@ void MyAutoScrollingWindow::OnDraw(wxDC& dc)
     dc.SetPen(*wxTRANSPARENT_PEN);
     const wxString str = sm_testData;
     size_t strLength = str.length();
-    wxString::const_iterator str_i;
+    wxString::const_iterator str_i = std.begin();
 
     // draw the characters
     // 1. for each update region