| 911 | } |
| 912 | |
| 913 | void UICodeEditorSplitter::forEachDocSharedPtr( |
| 914 | std::function<void( std::shared_ptr<TextDocument> )> run ) const { |
| 915 | std::unordered_map<TextDocument*, std::shared_ptr<TextDocument>> docs; |
| 916 | forEachEditor( [&docs]( UICodeEditor* editor ) { |
| 917 | docs.insert( { editor->getDocumentRef().get(), editor->getDocumentRef() } ); |
| 918 | } ); |
| 919 | for ( const auto& doc : docs ) |
| 920 | run( doc.second ); |
| 921 | } |
| 922 | |
| 923 | void UICodeEditorSplitter::forEachTabWidget( std::function<void( UITabWidget* )> run ) const { |
| 924 | for ( auto widget : mTabWidgets ) |
no test coverage detected