| 614 | Surface *surf; |
| 615 | public: |
| 616 | AutoSurface(Editor *ed, int technology = -1) : surf(0) { |
| 617 | if (ed->wMain.GetID()) { |
| 618 | surf = Surface::Allocate(technology != -1 ? technology : ed->technology); |
| 619 | if (surf) { |
| 620 | surf->Init(ed->wMain.GetID()); |
| 621 | surf->SetUnicodeMode(SC_CP_UTF8 == ed->CodePage()); |
| 622 | surf->SetDBCSMode(ed->CodePage()); |
| 623 | } |
| 624 | } |
| 625 | } |
| 626 | AutoSurface(SurfaceID sid, Editor *ed, int technology = -1) : surf(0) { |
| 627 | if (ed->wMain.GetID()) { |
| 628 | surf = Surface::Allocate(technology != -1 ? technology : ed->technology); |
nothing calls this directly
no test coverage detected