From 23afac5ec2a695bf7a26930d3613e2ac24337e92 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 26 Apr 2019 23:00:26 +0300 Subject: [PATCH] SplitSource fix detection of Td.cpp. GitOrigin-RevId: d6f3f2b37f271deb47287264666df25d71e18222 --- SplitSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SplitSource.php b/SplitSource.php index 851e1778..3a45956d 100644 --- a/SplitSource.php +++ b/SplitSource.php @@ -257,7 +257,7 @@ function split_file($file, $chunks, $undo) { ); } - if (strpos($new_content, 'Td::') === false) { // destructor Td::~Td needs to see definitions of all forward-declared classes + if (strpos($cpp_name, 'Td.cpp') === false) { // destructor Td::~Td needs to see definitions of all forward-declared classes $td_methods = array( 'auth_manager[_(-][^.]|AuthManager' => 'AuthManager', 'ConfigShared|shared_config[(][)]' => 'ConfigShared',