Kaynağa Gözat

Use const ref args in probe_pt

Scott Lahteine 8 yıl önce
ebeveyn
işleme
2fc9ad6657
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp Dosyayı Görüntüle

@@ -2006,7 +2006,7 @@ static void clean_up_after_endstop_or_probe_move() {
2006 2006
   //   - Raise to the BETWEEN height
2007 2007
   // - Return the probed Z position
2008 2008
   //
2009
-  static float probe_pt(float x, float y, bool stow = true, int verbose_level = 1) {
2009
+  static float probe_pt(const float &x, const float &y, bool stow = true, int verbose_level = 1) {
2010 2010
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2011 2011
       if (DEBUGGING(LEVELING)) {
2012 2012
         SERIAL_ECHOPAIR(">>> probe_pt(", x);

Loading…
İptal
Kaydet