зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1401069 - Part 3. Declare WindowsEMF::GetDC as const member function. r=fatseng
MozReview-Commit-ID: BX7ahnIok2T --HG-- extra : rebase_source : f245814808a1714895dc7e83e38f357fbe29a168
This commit is contained in:
Родитель
7a420a808c
Коммит
cc1dccb273
|
@ -50,7 +50,13 @@ public:
|
|||
* to draw EMF onto the given DC or call SaveToFile() to finish writing the
|
||||
* EMF file.
|
||||
*/
|
||||
HDC GetDC() { return mDC; }
|
||||
HDC GetDC() const
|
||||
{
|
||||
MOZ_ASSERT(mDC, "GetDC can be used only after "
|
||||
"InitForDrawing/ InitFromFileContents and before"
|
||||
"Playback/ SaveToFile");
|
||||
return mDC;
|
||||
}
|
||||
|
||||
/**
|
||||
* Play the EMF's drawing commands onto the given DC.
|
||||
|
|
Загрузка…
Ссылка в новой задаче