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

Side by Side Diff: src/gdef.cc

Issue 6386020: Fix MSVC compiler warning. (Closed) Base URL: http://ots.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gdef.h" 5 #include "gdef.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "layout.h" 9 #include "layout.h"
10 #include "maxp.h" 10 #include "maxp.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 DROP_THIS_TABLE; 343 DROP_THIS_TABLE;
344 return true; 344 return true;
345 } 345 }
346 } 346 }
347 gdef->data = data; 347 gdef->data = data;
348 gdef->length = length; 348 gdef->length = length;
349 return true; 349 return true;
350 } 350 }
351 351
352 bool ots_gdef_should_serialise(OpenTypeFile *file) { 352 bool ots_gdef_should_serialise(OpenTypeFile *file) {
353 return file->gdef; 353 return file->gdef != NULL;
354 } 354 }
355 355
356 bool ots_gdef_serialise(OTSStream *out, OpenTypeFile *file) { 356 bool ots_gdef_serialise(OTSStream *out, OpenTypeFile *file) {
357 if (!out->Write(file->gdef->data, file->gdef->length)) { 357 if (!out->Write(file->gdef->data, file->gdef->length)) {
358 return OTS_FAILURE(); 358 return OTS_FAILURE();
359 } 359 }
360 360
361 return true; 361 return true;
362 } 362 }
363 363
364 void ots_gdef_free(OpenTypeFile *file) { 364 void ots_gdef_free(OpenTypeFile *file) {
365 delete file->gdef; 365 delete file->gdef;
366 } 366 }
367 367
368 } // namespace ots 368 } // namespace ots
369 369
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698