Changeset 0bd46fd for src/ControlStruct


Ignore:
Timestamp:
Sep 21, 2022, 10:52:51 AM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
7f6a7c9, e01eb4a
Parents:
20737104
Message:

Fixed several warnings

Location:
src/ControlStruct
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/ControlStruct/LabelGeneratorNew.cpp

    r20737104 r0bd46fd  
    1414//
    1515
    16 using namespace std;
    17 
    1816#include "LabelGeneratorNew.hpp"
    1917
     
    2119#include "AST/Label.hpp"
    2220#include "AST/Stmt.hpp"
     21
     22using namespace std;
    2323using namespace ast;
    2424
  • TabularUnified src/ControlStruct/MultiLevelExit.cpp

    r20737104 r0bd46fd  
    356356        vec.emplace_back( nullptr );
    357357        for ( size_t i = vec.size() - 1 ; 0 < i ; --i ) {
    358                 vec[ i ] = move( vec[ i - 1 ] );
     358                vec[ i ] = std::move( vec[ i - 1 ] );
    359359        }
    360360        vec[ 0 ] = element;
     
    511511
    512512void MultiLevelExitCore::previsit( const FinallyClause * ) {
    513         GuardAction([this, old = move( enclosing_control_structures)](){ enclosing_control_structures = move(old); });
     513        GuardAction([this, old = std::move( enclosing_control_structures)](){ enclosing_control_structures = std::move(old); });
    514514        enclosing_control_structures = vector<Entry>();
    515515        GuardValue( inFinally ) = true;
Note: See TracChangeset for help on using the changeset viewer.