Loading webshell/tests/viewer/nsBrowserWindow.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -40,6 +40,8 @@ #if defined(WIN32) #include <strstrea.h> #else #include <strstream.h> #endif #if defined(WIN32) Loading Loading @@ -1310,7 +1312,6 @@ nsBrowserWindow::DoDebugSave() void nsBrowserWindow::DoCopy() { #ifdef WIN32 nsIPresShell* shell = GetPresShell(); if (nsnull != shell) { nsIDocument* doc = shell->GetDocument(); Loading Loading @@ -1345,7 +1346,7 @@ nsBrowserWindow::DoCopy() NS_IF_RELEASE(sink); char* str = data.str(); //#if defined(WIN32) #if defined(WIN32) HGLOBAL hGlobalMemory; PSTR pGlobalMemory; Loading @@ -1371,7 +1372,7 @@ nsBrowserWindow::DoCopy() } // in ostrstreams if you cal the str() function // then you are responsible for deleting the string //#endif #endif if (str) delete str; } Loading @@ -1379,7 +1380,6 @@ nsBrowserWindow::DoCopy() } } } #endif } Loading Loading
webshell/tests/viewer/nsBrowserWindow.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -40,6 +40,8 @@ #if defined(WIN32) #include <strstrea.h> #else #include <strstream.h> #endif #if defined(WIN32) Loading Loading @@ -1310,7 +1312,6 @@ nsBrowserWindow::DoDebugSave() void nsBrowserWindow::DoCopy() { #ifdef WIN32 nsIPresShell* shell = GetPresShell(); if (nsnull != shell) { nsIDocument* doc = shell->GetDocument(); Loading Loading @@ -1345,7 +1346,7 @@ nsBrowserWindow::DoCopy() NS_IF_RELEASE(sink); char* str = data.str(); //#if defined(WIN32) #if defined(WIN32) HGLOBAL hGlobalMemory; PSTR pGlobalMemory; Loading @@ -1371,7 +1372,7 @@ nsBrowserWindow::DoCopy() } // in ostrstreams if you cal the str() function // then you are responsible for deleting the string //#endif #endif if (str) delete str; } Loading @@ -1379,7 +1380,6 @@ nsBrowserWindow::DoCopy() } } } #endif } Loading