mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
Moving more old clipboard stuff into #ifdef-land.
This commit is contained in:
parent
5d71ce6aab
commit
923e1f8ef5
@ -1995,6 +1995,8 @@ nsBrowserWindow::DoPaste()
|
||||
{
|
||||
nsIPresShell* shell = GetPresShell();
|
||||
if (nsnull != shell) {
|
||||
|
||||
#ifndef NEW_CLIPBOARD_SUPPORT
|
||||
nsISelectionMgr* selectionMgr;
|
||||
if (NS_SUCCEEDED(mAppShell->GetSelectionMgr(&selectionMgr)))
|
||||
{
|
||||
@ -2004,6 +2006,10 @@ nsBrowserWindow::DoPaste()
|
||||
printf("Would paste: '%s'\n", cstring);
|
||||
delete[] cstring;
|
||||
}
|
||||
#else
|
||||
printf("nsBrowserWindow::DoPaste()\n");
|
||||
#endif
|
||||
|
||||
NS_RELEASE(shell);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user