]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/GDEFMarkFilter.cpp
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / layout / GDEFMarkFilter.cpp
index 256d7d98ac3583774f01ef509bc97b2908aa7f02..ac5128a9f8ba0086580210cb985cc2cb986fe760 100644 (file)
@@ -1,7 +1,6 @@
 /*
- * @(#)GDEFMarkFilter.cpp      1.5 00/03/15
  *
- * (C) Copyright IBM Corp. 1998, 1999, 2000, 2001 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998 - 2013 - All Rights Reserved
  *
  */
 
 
 U_NAMESPACE_BEGIN
 
-GDEFMarkFilter::GDEFMarkFilter(const GlyphDefinitionTableHeader *gdefTable)
+GDEFMarkFilter::GDEFMarkFilter(const LEReferenceTo<GlyphDefinitionTableHeader> &gdefTable, LEErrorCode &success)
+  : classDefTable(gdefTable->getGlyphClassDefinitionTable(gdefTable, success))
 {
-    classDefTable = gdefTable->getGlyphClassDefinitionTable();
+  if(!classDefTable.isValid()) {
+    success = LE_INTERNAL_ERROR;
+  }
 }
 
 GDEFMarkFilter::~GDEFMarkFilter()