[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Dec 20 23:33:39 UTC 2018


 sc/source/ui/StatisticsDialogs/SamplingDialog.cxx |    4 ++--
 sc/source/ui/inc/SamplingDialog.hxx               |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6e8756a83549340f8c6b2c085936418241448c7b
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Fri Dec 21 00:32:21 2018 +0100
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Fri Dec 21 00:33:14 2018 +0100

    Rename PerformRandomSampling() to PerformRandomSamplingKeepOrder()
    
    The implementation draws samples keeping the order of the
    population data. That may not exactly be what is expected, but
    might be offered as an option once random sampling in random order
    is implemented.
    
    Change-Id: Ic850d37a53e4a5f25f91c6fb6610d2244e70d897

diff --git a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
index 3a097a08c479..1717baa1282e 100644
--- a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
@@ -219,7 +219,7 @@ ScRange ScSamplingDialog::PerformPeriodicSampling(ScDocShell* pDocShell)
     return ScRange(mOutputAddress, ScAddress(outTab, outRow, outTab) );
 }
 
-ScRange ScSamplingDialog::PerformRandomSampling(ScDocShell* pDocShell)
+ScRange ScSamplingDialog::PerformRandomSamplingKeepOrder(ScDocShell* pDocShell)
 {
     ScAddress aStart = mInputRange.aStart;
     ScAddress aEnd   = mInputRange.aEnd;
@@ -277,7 +277,7 @@ void ScSamplingDialog::PerformSampling()
 
     if (mpRandomMethodRadio->IsChecked())
     {
-        aModifiedRange = PerformRandomSampling(pDocShell);
+        aModifiedRange = PerformRandomSamplingKeepOrder(pDocShell);
     }
     else if (mpPeriodicMethodRadio->IsChecked())
     {
diff --git a/sc/source/ui/inc/SamplingDialog.hxx b/sc/source/ui/inc/SamplingDialog.hxx
index 9b66be6e82c3..eb5f7310b857 100644
--- a/sc/source/ui/inc/SamplingDialog.hxx
+++ b/sc/source/ui/inc/SamplingDialog.hxx
@@ -67,7 +67,7 @@ private:
     void GetRangeFromSelection();
     void PerformSampling();
 
-    ScRange PerformRandomSampling(ScDocShell* pDocShell);
+    ScRange PerformRandomSamplingKeepOrder(ScDocShell* pDocShell);
     ScRange PerformPeriodicSampling(ScDocShell* pDocShell);
 
     DECL_LINK( OkClicked, Button*, void );


More information about the Libreoffice-commits mailing list