Skip to content

Commit

Permalink
Use int for IndexProperty and IntArrayLengthValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
robertapplin committed Apr 25, 2024
1 parent 4a9defc commit 16b5fb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Framework/API/inc/MantidAPI/IndexProperty.h
Expand Up @@ -27,7 +27,7 @@ namespace API {
@author Lamar Moore
@date 1/7/2017
*/
class MANTID_API_DLL IndexProperty : public Kernel::ArrayProperty<int64_t> {
class MANTID_API_DLL IndexProperty : public Kernel::ArrayProperty<int> {
public:
IndexProperty(const std::string &name, const IWorkspaceProperty &workspaceProp,
const IndexTypeProperty &indexTypeProp,
Expand All @@ -39,8 +39,8 @@ class MANTID_API_DLL IndexProperty : public Kernel::ArrayProperty<int64_t> {

IndexProperty *clone() const override;

using Kernel::ArrayProperty<int64_t>::operator=;
using Kernel::ArrayProperty<int64_t>::operator const std::vector<int64_t> &;
using Kernel::ArrayProperty<int>::operator=;
using Kernel::ArrayProperty<int>::operator const std::vector<int> &;

bool isDefault() const override;
std::string isValid() const override;
Expand Down
Expand Up @@ -49,6 +49,6 @@ namespace {

void export_ArrayLengthValidator() {
EXPORT_LENGTHVALIDATOR(double, Float);
EXPORT_LENGTHVALIDATOR(long, Int);
EXPORT_LENGTHVALIDATOR(int, Int);
EXPORT_LENGTHVALIDATOR(std::string, String);
}
Expand Up @@ -25,5 +25,5 @@ template <typename TYPE> ArrayOrderedPairsValidator<TYPE> *createArrayOrderedPai
} // namespace
void export_ArrayOrderedPairsValidator() {
EXPORT_PAIRSVALIDATOR(double, Float);
EXPORT_PAIRSVALIDATOR(long, Int);
EXPORT_PAIRSVALIDATOR(int, Int);
}

0 comments on commit 16b5fb7

Please sign in to comment.