From 8665f568cb09ebe985e52252628a1fb0e858e34e Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Mon, 23 Sep 2024 11:16:19 +0200 Subject: [PATCH] Remove virtual --- src/xtd.core/include/xtd/basic_array.h | 4 ++-- src/xtd.core/include/xtd/collections/generic/list.h | 4 ++-- src/xtd.core/include/xtd/text/basic_string_builder.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/xtd.core/include/xtd/basic_array.h b/src/xtd.core/include/xtd/basic_array.h index 06099933b02b..ffea9de39fd8 100644 --- a/src/xtd.core/include/xtd/basic_array.h +++ b/src/xtd.core/include/xtd/basic_array.h @@ -481,10 +481,10 @@ namespace xtd { /// @brief Returns a reference to the underlying base type. /// @return Reference to the underlying base type. - virtual operator const base_type&() const noexcept {return data_->items;} + operator const base_type&() const noexcept {return data_->items;} /// @brief Returns a reference to the underlying base type. /// @return Reference to the underlying base type. - virtual operator base_type&() noexcept {return data_->items;} + operator base_type&() noexcept {return data_->items;} /// @brief Gets the value at the specified position in the multidimensional array. The indexes are specified as a 32-bit integer array. /// @param indexes An array that represents the multidimension index of the array element to get. diff --git a/src/xtd.core/include/xtd/collections/generic/list.h b/src/xtd.core/include/xtd/collections/generic/list.h index 1bdc5affad3b..dfc7d1fabfd8 100644 --- a/src/xtd.core/include/xtd/collections/generic/list.h +++ b/src/xtd.core/include/xtd/collections/generic/list.h @@ -930,10 +930,10 @@ namespace xtd { /// @brief Returns a reference to the underlying base type. /// @return Reference to the underlying base type. - virtual operator const base_type&() const noexcept {return data_->items;} + operator const base_type&() const noexcept {return data_->items;} /// @brief Returns a reference to the underlying base type. /// @return Reference to the underlying base type. - virtual operator base_type&() noexcept {return data_->items;} + operator base_type&() noexcept {return data_->items;} /// @} private: diff --git a/src/xtd.core/include/xtd/text/basic_string_builder.h b/src/xtd.core/include/xtd/text/basic_string_builder.h index 8b65d93b23d6..48be561ac587 100644 --- a/src/xtd.core/include/xtd/text/basic_string_builder.h +++ b/src/xtd.core/include/xtd/text/basic_string_builder.h @@ -2043,10 +2043,10 @@ namespace xtd { /// @brief Returns a reference to the underlying base type. /// @return Reference to the underlying base type. - virtual operator const base_type&() const noexcept {return chars_;} + operator const base_type&() const noexcept {return chars_;} /// @brief Returns a reference to the underlying base type. /// @return Reference to the underlying base type. - virtual operator base_type&() noexcept {return chars_;} + operator base_type&() noexcept {return chars_;} /// @brief Copy assignment operator. Replaces the contents with a copy of the contents of str. /// @param str String to use as data source.