| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> | 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 m_topExpr = nullptr; | 500 m_topExpr = nullptr; |
| 501 | 501 |
| 502 return result; | 502 return result; |
| 503 } | 503 } |
| 504 | 504 |
| 505 void Parser::registerString(String* s) { | 505 void Parser::registerString(String* s) { |
| 506 if (!s) | 506 if (!s) |
| 507 return; | 507 return; |
| 508 | 508 |
| 509 DCHECK(!m_strings.contains(s)); | 509 DCHECK(!m_strings.contains(s)); |
| 510 m_strings.add(wrapUnique(s)); | 510 m_strings.add(WTF::wrapUnique(s)); |
| 511 } | 511 } |
| 512 | 512 |
| 513 void Parser::deleteString(String* s) { | 513 void Parser::deleteString(String* s) { |
| 514 if (!s) | 514 if (!s) |
| 515 return; | 515 return; |
| 516 | 516 |
| 517 DCHECK(m_strings.contains(s)); | 517 DCHECK(m_strings.contains(s)); |
| 518 m_strings.remove(s); | 518 m_strings.remove(s); |
| 519 } | 519 } |
| OLD | NEW |