Skip to content

Commit 48c94dc

Browse files
committed
renamed to popped_strings all over the function
1 parent 5d24c0c commit 48c94dc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/stdlib_stringlist_type.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,9 @@ end function get_range_idx_impl
811811
!> Version: experimental
812812
!>
813813
!> Removes strings present at indexes in interval ['first', 'last']
814-
!> Stores captured popped strings in array 'capture_popped'
814+
!> Stores popped strings in array 'popped_strings'
815815
!> No return
816-
pure subroutine pop_drop_engine( list, first, last, capture_popped )
816+
pure subroutine pop_drop_engine( list, first, last, popped_strings )
817817
class(stringlist_type), intent(inout) :: list
818818
type(stringlist_index_type), intent(in) :: first, last
819819
type(string_type), allocatable, intent(out), optional :: popped_strings(:)
@@ -839,9 +839,9 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
839839
end do
840840

841841
! capture popped strings
842-
if ( present(capture_popped) ) then
842+
if ( present(popped_strings) ) then
843843
call get_engine( list, shift( first, from - firstn ), &
844-
& shift( last, lastn - to ), capture_popped )
844+
& shift( last, lastn - to ), popped_strings )
845845
end if
846846

847847
inew = from
@@ -852,8 +852,8 @@ pure subroutine pop_drop_engine( list, first, last, capture_popped )
852852

853853
call move_alloc( new_stringarray, list%stringarray )
854854
else
855-
if ( present(capture_popped) ) then
856-
allocate( capture_popped(0) )
855+
if ( present(popped_strings) ) then
856+
allocate( popped_strings(0) )
857857
end if
858858
end if
859859

0 commit comments

Comments
 (0)