Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2461)

Unified Diff: core/src/fpdfdoc/pdf_vt.h

Issue 1301453002: Merge to XFA: Cleanup: Fix some unneeded semi-colons and bad spacing. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_font/ttgsubtable.h ('k') | core/src/fpdftext/text_int.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfdoc/pdf_vt.h
diff --git a/core/src/fpdfdoc/pdf_vt.h b/core/src/fpdfdoc/pdf_vt.h
index 64811178ebec8f88e8cd54c8c617e83b16701eb4..a237ef225ea9d0441dc000b066132bdffc759881 100644
--- a/core/src/fpdfdoc/pdf_vt.h
+++ b/core/src/fpdfdoc/pdf_vt.h
@@ -306,16 +306,16 @@ class CTypeset {
};
class CPDF_EditContainer {
public:
- CPDF_EditContainer() : m_rcPlate(0, 0, 0, 0), m_rcContent(0, 0, 0, 0){};
- virtual ~CPDF_EditContainer(){};
- virtual void SetPlateRect(const CPDF_Rect& rect) { m_rcPlate = rect; };
- virtual const CPDF_Rect& GetPlateRect() const { return m_rcPlate; };
+ CPDF_EditContainer() : m_rcPlate(0, 0, 0, 0), m_rcContent(0, 0, 0, 0) {}
+ virtual ~CPDF_EditContainer() {}
+ virtual void SetPlateRect(const CPDF_Rect& rect) { m_rcPlate = rect; }
+ virtual const CPDF_Rect& GetPlateRect() const { return m_rcPlate; }
virtual void SetContentRect(const CPVT_FloatRect& rect) {
m_rcContent = rect;
};
- virtual CPDF_Rect GetContentRect() const { return m_rcContent; };
- FX_FLOAT GetPlateWidth() const { return m_rcPlate.right - m_rcPlate.left; };
- FX_FLOAT GetPlateHeight() const { return m_rcPlate.top - m_rcPlate.bottom; };
+ virtual CPDF_Rect GetContentRect() const { return m_rcContent; }
+ FX_FLOAT GetPlateWidth() const { return m_rcPlate.right - m_rcPlate.left; }
+ FX_FLOAT GetPlateHeight() const { return m_rcPlate.top - m_rcPlate.bottom; }
CPVT_Size GetPlateSize() const {
return CPVT_Size(GetPlateWidth(), GetPlateHeight());
};
@@ -561,7 +561,7 @@ class CPDF_VariableText_Iterator : public IPDF_VariableText_Iterator {
FX_BOOL SetSection(const CPVT_Section& section) override;
void SetAt(int32_t nWordIndex) override;
void SetAt(const CPVT_WordPlace& place) override;
- const CPVT_WordPlace& GetAt() const override { return m_CurPos; };
+ const CPVT_WordPlace& GetAt() const override { return m_CurPos; }
private:
CPVT_WordPlace m_CurPos;
« no previous file with comments | « core/src/fpdfapi/fpdf_font/ttgsubtable.h ('k') | core/src/fpdftext/text_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698