diff options
author | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 17:56:40 +0000 |
---|---|---|
committer | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-15 17:56:40 +0000 |
commit | 0ae80b89e17ebe13f5f793cbae9942f8abe4852e (patch) | |
tree | b2becb95f7da1b81b3e88d20cc3b1eca2ee5397a /chrome | |
parent | 0d96af054c95e365debb307e3436f1f321db1354 (diff) | |
download | chromium_src-0ae80b89e17ebe13f5f793cbae9942f8abe4852e.zip chromium_src-0ae80b89e17ebe13f5f793cbae9942f8abe4852e.tar.gz chromium_src-0ae80b89e17ebe13f5f793cbae9942f8abe4852e.tar.bz2 |
Change #ifdef _DEBUG test to #ifndef NDEBUG test.
Review URL: http://codereview.chromium.org/7404
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/printing/printed_document.cc | 2 | ||||
-rw-r--r-- | chrome/browser/printing/win_printing_context.cc | 8 | ||||
-rw-r--r-- | chrome/browser/printing/win_printing_context.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/printing/printed_document.cc b/chrome/browser/printing/printed_document.cc index 1b61971..b6a5d8a 100644 --- a/chrome/browser/printing/printed_document.cc +++ b/chrome/browser/printing/printed_document.cc @@ -89,7 +89,7 @@ bool PrintedDocument::GetPage(int page_number, void PrintedDocument::RenderPrintedPage(const PrintedPage& page, HDC context) const { -#ifdef _DEBUG +#ifndef NDEBUG { // Make sure the page is from our list. AutoLock lock(lock_); diff --git a/chrome/browser/printing/win_printing_context.cc b/chrome/browser/printing/win_printing_context.cc index dc1723a..badbaf2 100644 --- a/chrome/browser/printing/win_printing_context.cc +++ b/chrome/browser/printing/win_printing_context.cc @@ -135,7 +135,7 @@ class PrintingContext::CallbackHandler PrintingContext::PrintingContext() : hdc_(NULL), -#ifdef _DEBUG +#ifndef NDEBUG page_number_(-1), #endif dialog_box_(NULL), @@ -242,7 +242,7 @@ void PrintingContext::ResetSettings() { settings_.Clear(); in_print_job_ = false; -#ifdef _DEBUG +#ifndef NDEBUG page_number_ = -1; #endif } @@ -297,7 +297,7 @@ PrintingContext::Result PrintingContext::NewDocument( if (StartDoc(hdc_, &di) <= 0) return OnErrror(); -#ifdef _DEBUG +#ifndef NDEBUG page_number_ = 0; #endif return OK; @@ -312,7 +312,7 @@ PrintingContext::Result PrintingContext::NewPage() { if (StartPage(hdc_) <= 0) return OnErrror(); -#ifdef _DEBUG +#ifndef NDEBUG ++page_number_; #endif diff --git a/chrome/browser/printing/win_printing_context.h b/chrome/browser/printing/win_printing_context.h index 227c301..eaacc02 100644 --- a/chrome/browser/printing/win_printing_context.h +++ b/chrome/browser/printing/win_printing_context.h @@ -113,7 +113,7 @@ class PrintingContext { // Complete print context settings. PrintSettings settings_; -#ifdef _DEBUG +#ifndef NDEBUG // Current page number in the print job. int page_number_; #endif |