Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/13/19 11:37:59 (5 years ago)
Author:
abeham
Message:

#2521: finished refactoring TSP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Data/3.3/ValueTypeMatrix.cs

    r17248 r17251  
    190190
    191191    public virtual ValueTypeMatrix<T> AsReadOnly() {
    192       ValueTypeMatrix<T> readOnlyValueTypeMatrix = (ValueTypeMatrix<T>)this.Clone();
     192      if (readOnly) return this;
     193      var readOnlyValueTypeMatrix = (ValueTypeMatrix<T>)this.Clone();
    193194      readOnlyValueTypeMatrix.readOnly = true;
    194195      return readOnlyValueTypeMatrix;
Note: See TracChangeset for help on using the changeset viewer.