зеркало из https://github.com/mozilla/gecko-dev.git
some functions need to be static, this should fix the static build bustage
This commit is contained in:
Родитель
c19ef82a9c
Коммит
97f236565e
|
@ -291,7 +291,7 @@ SetupDevModeFromSettings(LPDEVMODE aDevMode, nsIPrintSettings* aPrintSettings)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Helper Function - Free and reallocate the string
|
// Helper Function - Free and reallocate the string
|
||||||
nsresult
|
static nsresult
|
||||||
SetPrintSettingsFromDevMode(nsIPrintSettings* aPrintSettings,
|
SetPrintSettingsFromDevMode(nsIPrintSettings* aPrintSettings,
|
||||||
LPDEVMODE aDevMode)
|
LPDEVMODE aDevMode)
|
||||||
{
|
{
|
||||||
|
@ -511,7 +511,7 @@ static void GetLocalRect(HWND aWnd, RECT& aRect, HWND aParent)
|
||||||
|
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
// Show or Hide the control
|
// Show or Hide the control
|
||||||
void Show(HWND aWnd, PRBool bState)
|
static void Show(HWND aWnd, PRBool bState)
|
||||||
{
|
{
|
||||||
if (aWnd) {
|
if (aWnd) {
|
||||||
::ShowWindow(aWnd, bState?SW_SHOW:SW_HIDE);
|
::ShowWindow(aWnd, bState?SW_SHOW:SW_HIDE);
|
||||||
|
@ -575,7 +575,7 @@ static HWND CreateGroupBox(HINSTANCE aHInst,
|
||||||
|
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
// Localizes and initializes the radio buttons and group
|
// Localizes and initializes the radio buttons and group
|
||||||
void InitializeExtendedDialog(HWND hdlg, PRInt16 aHowToEnableFrameUI)
|
static void InitializeExtendedDialog(HWND hdlg, PRInt16 aHowToEnableFrameUI)
|
||||||
{
|
{
|
||||||
// Localize the new controls in the print dialog
|
// Localize the new controls in the print dialog
|
||||||
nsCOMPtr<nsIStringBundle> strBundle;
|
nsCOMPtr<nsIStringBundle> strBundle;
|
||||||
|
@ -617,7 +617,7 @@ void InitializeExtendedDialog(HWND hdlg, PRInt16 aHowToEnableFrameUI)
|
||||||
|
|
||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
// Special Hook Procedure for handling the print dialog messages
|
// Special Hook Procedure for handling the print dialog messages
|
||||||
UINT CALLBACK PrintHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
|
static UINT CALLBACK PrintHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (uiMsg == WM_COMMAND) {
|
if (uiMsg == WM_COMMAND) {
|
||||||
|
@ -1057,7 +1057,7 @@ ShowNativePrintDialog(HWND aHWnd,
|
||||||
#ifdef MOZ_REQUIRE_CURRENT_SDK
|
#ifdef MOZ_REQUIRE_CURRENT_SDK
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// Callback for Property Sheet
|
// Callback for Property Sheet
|
||||||
BOOL APIENTRY PropSheetCallBack(HWND hdlg, UINT uiMsg, UINT wParam, LONG lParam)
|
static BOOL APIENTRY PropSheetCallBack(HWND hdlg, UINT uiMsg, UINT wParam, LONG lParam)
|
||||||
{
|
{
|
||||||
if (uiMsg == WM_COMMAND) {
|
if (uiMsg == WM_COMMAND) {
|
||||||
UINT id = LOWORD(wParam);
|
UINT id = LOWORD(wParam);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче