Fix compile error
Forgot about passing rvalues
This commit is contained in:
		
							parent
							
								
									7a1d6743e1
								
							
						
					
					
						commit
						f1d12d17a0
					
				@ -12,7 +12,8 @@ TEST_CASE("AOPacket construct", "[aopacket]") {
 | 
				
			|||||||
    REQUIRE(p.to_string() == packet_string);
 | 
					    REQUIRE(p.to_string() == packet_string);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  SECTION("Header and contents") {
 | 
					  SECTION("Header and contents") {
 | 
				
			||||||
    AOPacket p("CT", {"MY_OOC_NAME", "/doc https://docs.google.com/document/d/123/edit#"});
 | 
					    QStringList contents = {"MY_OOC_NAME", "/doc https://docs.google.com/document/d/123/edit#"};
 | 
				
			||||||
 | 
					    AOPacket p("CT", contents);
 | 
				
			||||||
    REQUIRE(p.to_string() == packet_string);
 | 
					    REQUIRE(p.to_string() == packet_string);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -32,7 +33,8 @@ TEST_CASE("AOPacket encode/decode", "[aopacket]") {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  SECTION("Good encode/decode with header and contents constructor") {
 | 
					  SECTION("Good encode/decode with header and contents constructor") {
 | 
				
			||||||
    AOPacket p("CT", {"MY_OOC_NAME", "/doc https://docs.google.com/document/d/%$&/edit#"});
 | 
					    QStringList contents = {"MY_OOC_NAME", "/doc https://docs.google.com/document/d/%$&/edit#"};
 | 
				
			||||||
 | 
					    AOPacket p("CT", contents);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    p.net_encode();
 | 
					    p.net_encode();
 | 
				
			||||||
    REQUIRE(p.to_string() == good_encode);
 | 
					    REQUIRE(p.to_string() == good_encode);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user